level: Stata
Questions and Answers List
level questions: Stata
Question | Answer |
---|---|
Normal regression | reg yvar xvar, r |
Regression med kontrol | reg yvar xvar zvar, r |
hypotesetest | ttest yvar, by(xvar) unequal |
ciplot | ciplot yvar, by(xvar) |
Samme stikprøve | generate used=e(sample) |
Justeret R^2 | Display e(r2_a) |
Interflex | interflex yvar xvar zvar |
Marginale effekter | Margins, dydx(x) at(z=(0(1)2)) |
Interaktionsanalyse | Reg y c.x##i.z z1 z2 z3, r |
Grafisk illustration af marginale effekter | marginsplot (post estimation) |
ACPR | acpr xvar, (optioner omkring lowess og lfit) |
DiD-analyse | Reg y x##bølge, cluster(id) |
Angivelse af treatment | bys id: egen TG=max(euLeaveContact) |
polynomisk regression | reg yvar xvar##xvar |
logistisk | logit yvar xvar |
odd-ratio | , or |
faktoranalyse | factor item1 item2, pcf |
postestimationskommando der giver f-test | testparm |
fixed effects | xtset niveau2 derefter: xtreg yvar xvar zvar, fe cluster(niveau1) |