Hello,
I am trying to run -margins- but the dy/dx of a key independent variable (month) is coming back "inestimable", while many other similar instances of -margins- which I run, using many of the same variables, come back fine. When I run the code
I obtain:
How can I make the dy/dx for February estimable in this case?
I include some output from -dataex- also, for reference:
I am trying to run -margins- but the dy/dx of a key independent variable (month) is coming back "inestimable", while many other similar instances of -margins- which I run, using many of the same variables, come back fine. When I run the code
Code:
logistic lfs sex##survmnth##loneyg if loneyg==1 & edu==2, or margins i.survmnth#loneyg, dydx(sex)
Code:
Conditional marginal effects Number of obs = 416 Model VCE: OIM Expression: Pr(lfs), predict() dy/dx wrt: 2.sex --------------------------------------------------------------------------------------------- | Delta-method | dy/dx std. err. z P>|z| [95% conf. interval] ----------------------------+---------------------------------------------------------------- 1.sex | (base outcome) ----------------------------+---------------------------------------------------------------- 2.sex | survmnth#loneyg | Feb#Lone parents, yg child | . (not estimable) Mar#Lone parents, yg child | -.0047096 .0789112 -0.06 0.952 -.1593727 .1499536 Apr#Lone parents, yg child | -.1016548 .1129416 -0.90 0.368 -.3230164 .1197067 May#Lone parents, yg child | .0138889 .146612 0.09 0.925 -.2734654 .3012432 ---------------------------------------------------------------------------------------------
I include some output from -dataex- also, for reference:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte(sex survmnth) float(loneyg edu) 1 5 . 2 1 3 . 1 1 3 . 1 1 2 . 1 1 3 . 0 1 5 . 2 1 2 . 1 1 4 . 2 1 2 . 2 1 4 . 0 1 5 . 0 1 4 . 1 1 2 . 1 1 2 . 0 1 2 . 0 1 2 . 1 1 2 . 0 1 4 . 1 1 2 . 1 1 3 . 1 1 5 . 0 1 4 . 2 1 5 . 2 1 2 . 1 1 2 . 1 1 3 . 0 1 3 . 0 1 5 . 0 1 4 . 1 1 2 . 0 1 2 0 1 1 3 . 2 1 5 . 0 1 5 0 0 1 4 . 1 1 5 . 1 1 3 . 1 1 3 . 0 1 2 . 2 1 5 . 1 1 2 . 0 1 3 . 0 1 4 . 1 1 4 . 1 1 5 . 1 1 4 . 0 1 2 . 2 1 5 . 1 1 5 . 2 1 2 . 0 1 4 . 1 1 3 . 1 1 2 . 1 1 5 . 0 1 3 . 1 1 2 . 0 1 3 . 0 1 5 . 2 1 3 . 1 1 5 . 2 1 2 . 1 1 2 . 1 1 4 . 2 1 2 . 2 1 2 . 1 1 3 . 1 1 5 . 1 1 3 . 2 1 2 . 1 1 2 . 0 1 4 . 1 1 5 . 1 1 4 . 0 1 5 . 0 1 4 . 1 1 5 . 1 1 4 . 1 1 4 . 2 1 4 . 1 1 2 . 1 1 2 . 0 1 3 . 0 1 5 . 1 1 4 . 1 1 3 . 0 1 3 . 1 1 5 . 1 1 3 . 0 1 4 . 0 1 3 . 1 1 5 . 0 1 2 . 2 1 3 . 2 1 5 . 1 1 2 . 1 1 4 . 0 1 4 . 1 1 3 . 2 1 2 . 0 1 3 . 0 1 2 . 0 1 5 . 2 1 4 . 1 1 2 . 1 1 4 . 2 1 4 . 0 1 5 . 0 1 2 . 1 1 3 . 1 1 5 . 2 1 2 . 0 1 3 . 1 1 3 . 0 1 5 . 2 1 4 . 1 1 2 . 0 1 4 . 2 1 3 . 2 1 5 . 1 1 3 . 1 1 3 . 0 1 5 . 2 1 4 . 1 1 2 . 0 1 4 . 0 1 4 . 0 1 2 . 0 1 5 1 1 1 2 . 2 1 3 . 1 1 5 . 1 1 3 . 1 1 5 . 1 1 2 . 0 1 5 . 2 1 5 . 2 1 2 . 1 1 2 . 2 1 4 . 1 1 3 . 1 1 3 . 1 1 5 . 0 1 3 . 1 1 2 . 2 1 3 . 2 1 3 . 1 1 4 . 1 1 5 . 2 1 2 . 1 1 3 . 0 end label values sex SEX label def SEX 1 "Male", modify label values survmnth survmnth label def survmnth 2 "Feb", modify label def survmnth 3 "Mar", modify label def survmnth 4 "Apr", modify label def survmnth 5 "May", modify label values loneyg loneyg label def loneyg 0 "Lone parents, old child", modify label def loneyg 1 "Lone parents, yg child", modify label values edu edu label def edu 0 "(<)HS", modify label def edu 1 "some uni/college deg/trades", modify label def edu 2 "BA degree+", modify
Comment