Dear Statalist members, I would be very thankful for an advice. I am running a biprobit model, and use eststo/esttab commands to output marginal effects. I need to add the rho coefficient (ideally, with significe level) to the output, but so far I was not able to figure out how to do it. When I use the estadd scalar corr = e(rho), the resulting scalar is empty after I run the eststo: margins
Here is the code I have worked so far with:
biprobit y1 y2 female $controls_fainc i.date , vce(robust)
estadd scalar corr = e(rho)
eststo: margins, predict (pmarg1) dydx(female $controls_fainc) atmeans noatlegend post
sum y1 if e(sample)==1
estadd scalar mean= r(mean)
eststo: margins, predict (pmarg2) dydx(female $controls_fainc) atmeans noatlegend post
sum y2 if e(sample)==1
estadd scalar mean= r(mean)
esttab using "${results}\table1.tex", replace style(tex) keep(female $controls_fainc) order(female $controls_fainc) ///
nonumber star(* 0.10 ** 0.05 *** 0.01) varlabels(_cons Constant) ///
cells(b(star fmt(3)) se(par fmt(3))) label booktabs alignment(D{.}{.}{-1}) collabels(none) nodepvar ///
stats(mean N corr , layout("@" "@" "\multicolumn{2}{c}{@}") labels( "\text{Mean dependent variable}" "\text{N observations}" "\text{Rho}") fmt(3 0 3))
Would be very obliged for any tip! Thank you!
Olga
Related Posts with Displaying rho after biprobit, margins in the output table
GLM Model (log link, poisson family) predicting values > 1 with binary outcome but only with particular independent variableHello, Thanks in advance for reviewing my question. I am trying to run a glm model (below) with a r…
gologit2Hello Statalist, I am running ordered probit regressions and have been using gologit2 rather than o…
Error code for "File already exists"Dear All, this is probably to Stata developers again. When saving the file as PDF with putpdf save …
Different results in "Mixed" and "ANOVA"Hello I would be most grateful if you could help with a problem I am experiencing using Stata. Esse…
Predicting individual-level slopes and intercepts after running mixed-effects modelsHi All I'm running two linear spline mixed-effects models (growth curve analysis) looking at mental…
Subscribe to:
Post Comments (Atom)
0 Response to Displaying rho after biprobit, margins in the output table
Post a Comment