11.07.2015 Views

[U] User's Guide

[U] User's Guide

[U] User's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

[ U ] 12.6 Dataset, variable, and value labels 131. label data "1980 state data". describeContains dataobs: 50 1980 state datavars: 4size: 1,200 (99.7% of memory free)storage display valuevariable name type format label variable labelstate str8 %9smedian_age float %9.0gmarriage_rate long %12.0gdivorce_rate long %12.0gSorted by:Note:dataset has changed since last savedThe dataset label is displayed by the describe and use commands.12.6.2 Variable labelsIn addition to the name, every variable has associated with it an 80-character variable label. Thevariable labels are initially set to blanks. You use the label variable varname "text" command todefine a new variable label.Example 6We have entered data on four variables: state, median age, marriage rate, and divorcerate. describe portrays the data we entered:. describeContains data from states.dtaobs: 50 1980 state datavars: 4size: 1,200 (99.7% of memory free)storage display valuevariable name type format label variable labelstate str8 %9smedian_age float %9.0gmarriage_rate long %12.0gdivorce_rate long %12.0gSorted by:Note:dataset has changed since last savedWe can associate labels with the variables by typing. label variable median_age "Median Age". label variable marriage_rate "Marriages per 100,000". label variable divorce_rate "Divorces per 100,000"

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!