Hi all,
I am using the margins command to predict probabilities. I ran 5 separate logistic regression for each subgroup (block) of my sample.
foreach blo of numlist 1(1)5 {
logit y x1 x2 x3 x4 if block==`blo'
qui margins if block==`blo', at((mean) _all x1=(1(1)10)) over(x2))
.....
}
My question is: for the part at((mean) _all x1=(1(1)10)) over(x2)) , is margins predicting the probabilities at the means of covariates x3 and x4 within each block (i.e. block-specific means), or at the means of x3 and x4 of the whole sample? If it is the latter, is there any efficient way of telling Stata to do it at the block-specific means of x3 and x4?
Thank you very much!
Related Posts with margins at((mean) _all)
only the estimated coefficientHi, Which could be the reason that Stata does not show me only the estimated coefficient?: ------…
Stata : Rr mantel heanzelI have SMR results by lauching this command : strate maxexpo_ardbis, per(100000) smr(taux_esto) and …
Number of rows and columns of subplots using xtlineHi, how can I define the number of rows/columns of subplots when using "xtline"? The options "rows(…
help with local macrosDear all, I would like to create several boxplots at once and combine them. i found the code below a…
Ramsey testHi, Which is the command in Stata 12 for the Ramsey Test with data panel? Thanks! …
Subscribe to:
Post Comments (Atom)
0 Response to margins at((mean) _all)
Post a Comment