Using Stata for Survey Data Analysis


Download 1.39 Mb.
Pdf ko'rish
bet16/61
Sana08.03.2023
Hajmi1.39 Mb.
#1252470
1   ...   12   13   14   15   16   17   18   19   ...   61
Bog'liq
2009 Usingstataforsurveydataanalysis (1)

Minot
 
 
 
 
 
Using Stata for Survey Analysis 
Page 10 
 

describe  
This command provides a brief description of the data file (similar to “descriptives var=all” in SPSS).
You can use “des” and Stata will understand. The output includes: 
the number of variables 
the number of observations (records) 
the size of the file 
the list of variables and their characteristics 
It also provides the following information on each variable in the data file: 
the variable name 
the storage type: byte is used for binary variables, int is used for integers, and float is used for 
continuous variables that may have decimals. To see information on each storage type, type 
“help datatypes”
the display type indicates how it will appear in the output.
the value label is the name of a set of labels for different values 
the variable label is a name for the variable that is used in output.
 
Example 2 shows part of the output from running the “des” command on the BLSS file called “food 
expenditure.”  
Example 2: Using “describe” to show information about a data file 
list 
This command lists values of variables in data set. It is very similar to “list” in SPSS. The syntax is: 
list [varlist] [if exp] [in range] 
With varlist, you can specify which variable‟s values will be presented. If no list is specified, all 
variables will be listed. With if and in, you can specify which records will be listed. Here are some 
examples: 


Using Stata for Survey Data Analysis 
 
Minot 
 
Page 11
list 
lists entire dataset 
list in 1/10 
lists observations 1 through 10 
list stratum dzongkha
lists selected variables 
list stratum dzongkha in 1/20
lists observations 1-20 for selected variables
list if dzongkha < 6
lists observations in dzongkhags 1 through 5
 

Download 1.39 Mb.

Do'stlaringiz bilan baham:
1   ...   12   13   14   15   16   17   18   19   ...   61




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling