Using Stata for Survey Data Analysis


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

tabulate, tab1, tab2 
These are three related commands that produce frequency tables for discrete variables. They can 
produce one-way frequency tables (tables with the frequency of one variable) or two-way frequency 
tables (tables with a row variable and a column variables. These commands are similar to the 
“frequency” and “crostab” commands in SPSS. How do the three commands differ? 
tabulate or tab produce a frequency table for one or two variables
tab1 produces a one-way frequency table for each variable in the variable list 
tab2 produces all possible two-variable tables from the list of variables
You can use several options with these commands: 
all gives all the tests of association for two-way tables 
cell gives the overall percentage for two-way tables 
col gives column percentages for two-way tables 
row gives row percentages for two-way tables 
nofreq suppresses printing the frequencies 
nol suppresses the use of value labels, showing the numeric values instead 
chi2 provides the chi squared test for two-way tables 
There are many other options, including other statistical tests. For more information, type “help 
tabulate”. 
Some examples of the tabulate commands are:
tabulate dzongkha
produces table of frequency by dzonghka  
tabulate dzongkha b21_q1
produces a cross-tab by dzongkhag and sex of head
tabulate dzongkha b21_q1, row produces the same cross-tab with row percentages  
tab1 dzongkha b21_q1 hh_size 
produces three tables, a frequency table for each variable


Using Stata for Survey Data Analysis 
 
Minot 
 
Page 13
tab2 dzongkha b21_q1 hh_size 
produces three tables, a cross-tab of each pair of variables 
Each type of tabulate command gives somewhat different output: 
In one-way tables, Stata gives the count, the percentage, and the cumulative percentage (see 
first example in box). 
In two-way tables, Stata gives the count only, unless you ask for other statistics (see second 
example in box)

Download 1.39 Mb.

Do'stlaringiz bilan baham:
1   ...   14   15   16   17   18   19   20   21   ...   61




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