Minot
Using Stata for Survey Analysis
Page 8
analysis should be carried out using the Do-file Editor. The Do-File Editor can be opened by clicking
on Windows/Do-file Editor or by clicking on the “Notebook” button.
With so many windows, it is sometimes difficult to fit them all on the screen. You can adjust the size
and position of each window the way you like it and then save the layout by clicking on
Edit/Preferences/Manage Preferences/Save Preferences/New Preference Set. The next time you open
Stata, the windows will be arranged according to your preferred layout.
Table 5 (below) provides a list of Stata commands that will be introduced in this document:
Table 5. Stata commands and topics covered in this guide
4. Exploring data
cd
clear
use
describe
list
summarize
tabulate
tab1
tab2
save
help
bysort prefix
if option
in option
set more
set mem
set scrollbufsize
5. Storing commands and output
Stata Do-file editor
log
exporting tables
6. Creating new variables and adding
labels
gen
replace
operators
functions
recode
tab …, generate
xtile
label variable
label define
label values
#delimit
7. Making tables
tabulate … summarize
tabstat
table
using weights
8. Modifying data files
rename
drop
drop if
keep
keep if
sort
compress
collapse
merge
append
fillin
reshape
9. Graphs
graph
twoway
bar
pie
matrix
connect( )
symbol( )
scatter
Do'stlaringiz bilan baham: |