Professional Documents
Culture Documents
Stata Phan 3
Stata Phan 3
Quick review
Th mc hin ti
. pwd
D:\Stata12_WinX86_x64\Stata12_WinX86_x64
Thay i th mc lm vic
ng dn c du cch, thm
. cd "E:\TAI LIEU\Stata"
E:\TAI LIEU\Stata
i tn bin
rename old new, [options]
rename (old1 old2 ...) (new1 new2 ...), [options]
rename old1 old2 ..., {UPPER|lower|Proper}[options]
options: renumber, renumber (#)
addnumber, addnumber (#)
i tn bin
Command
tabulate x1 x2, column
tabulate x1 x2, missing row all
tab2 x1 x2 x3 x4
tabulate x1, sum(y)
tabulate x1 x2, sum(y) means
by x3, sort: tabulate x1 x2
table y x2 x3, by(x4 x5)
contents(freq)
table x1 x2, contents(mean y1
median y2)