Title | Stata commands Study Guide |
---|---|
Course | Drugs Across Cultures |
Institution | Macquarie University |
Pages | 1 |
File Size | 40.2 KB |
File Type | |
Total Downloads | 26 |
Total Views | 151 |
Download Stata commands Study Guide PDF
Command
Syntax example
anova
anova DV IV
anova
anova DV IV1##IV2
margins
margins IV1#IV2, post
marginsplot
marginsplot
estat vif
estat vif
egen
egen cell = group (IV IV)
frequency table frequency VARlist graph
graph twoway (scaVer VARlist) (lfit VARlist) y
histogram
histogram VAR, by(groupVAR), freq
predict
predict RESNAME, resid
pairwise contraspwcompare VAR, effects mcompare(e.g. Bon pwmean DV, over(IV) mcompare( _ ) effects pw bi-var
pwcorr DV IV1 IV2 IV3, beta
simple regress. regress DV IV mul9ple regress regress DV IVlist levene’s test
robvar VAR, by(groupVAR)
scaVerplot
rvfplot two way scaVer DV IV twoway scaVer DV IV || lfit DV IV graph matrix DV IV IV
table
tabstat DV, by(IV) stat(n mean sd skew kurto
t b l t
t b l t VARli t...