虽然Stata已经历了二十余年的发展,命令不断增加,但牢记如下 43 个基本命令却是作为一个Stata用户的立身之本(Source:Stata 11 Manual,[U]27, p.375):
help, hsearch, net search, search [U] 4 Stata’s help and search facilities
Keeping Stata up to date ado, net, update [U] 28 Using the Internet to keep up to date
adoupdate [R] adoupdate
Operating system interface pwd, cd [D] cd
Using and saving data from disk
save [D] save
use [D] use
append, merge [U] 22 Combining datasets
compress [D] compress
Inputting data into Stata [U] 21 Inputting data
input [D] input
edit [D] edit
infile [D] infile (free format); [D] infile (fixed format)
infix [D] infix (fixed format)
insheet [D] insheet
Basic data reporting describe [D] describe
codebook [D] codebook
list [D] list
browse [D] edit
count [D] count
inspect [D] inspect
table [R] table
tabulate [R] tabulate oneway and [R] tabulate twoway
Data manipulation [U] 13 Functions and expressions
generate, replace [D] generate
egen [D] egen
rename [D] rename
drop, keep [D] drop
sort [D] sort
encode, decode [D] encode
order [D] order
by [U] 11.5 by varlist: construct
reshape [D] reshape
Keeping track of your work log [U] 15 Saving and printing output—log files
notes [D] notes
Convenience display [R] display

