Transcription of Stata: Software for Statistics and Data Science | Stata
{{id}} {{{paragraph}}}
Marginal means, predictive margins, and marginal effectsSyntaxMenuDescriptionOptionsRemar ks and examplesStored resultsMethods and formulasReferencesAlso seeSyntaxmargins[marginlist] [if] [in] [weight] [,responseoptions options]wheremarginlistis a list of factor variables or interactions that appear in the current estimation variables may be typed with or without , and you may use any factor- variable syntax:. margins # margins sex group sex# margins sex##groupresponseoptionsDescriptionMain predict(predopt)estimate margins forpredict,predoptexpression(pnlexp)esti mate margins forpnlexpdydx(varlist)estimate marginal effect of variables invarlisteyex(varlist)estimate elasticities of variables invarlistdyex(varlist)estimate semielasticity d(y)/d(lnx)eydx(varlist)estimate semielasticity d(lny)/d(x)continuoustreat factor-level indicators as continuousoptionsDescriptionMaingrandadd the overall margin; default if nomarginlistAtat(atspec)estimate margins at specified values of covariatesatmeansestimate margins at the means of cova
The variables may be typed with or without the i. prefix, and you may use any factor-variable syntax:. margins i.sex i.group i.sex#i.group ... that margins be estimated for the single subpopulation identified by the indicator variable or by the if expression or by both. Zero indicates that the observation be excluded; nonzero, that it be ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}