Hi all,
I am using ivprobit model, and label_use is the endogenous variable.
ivprobit healthy_decision i.educ i.employ i.gender age i.inc i.nut_net i.nut_tv i.nut_newspaper (label_use = slide_version slide_center)
1) for the predictive margins, when I use "margins label_use" it gives me the following error:
factor 'label_use' not found in list of covariates
And if I enter label_use as i.label_use in the ivprobit model, it gives me this error:
The endogenous variable is incorrectly specified
Could you please help me with the right command? since label_use is my main variable of interest.
2) My second question is about the average marginal effect. The following command for AME works for all variables. I just needed to make sure this is the right command to use;
margins, dydx(*) predict(pr)
Thank you in advance for all your help,
Sam
Related Posts with marginal analysis after ivprobit
Perform a paired ttest on two substracts of the same variableI have a dataset that looks like this: var1 var2 var3 attribute 1 0.93 0.88 1 1 0.76 0.20 1 …
Two way graph with multiple lines in a loopHello everyone, Iam trying to do a graph of multiple lines. What I want is a graph that shows in a s…
using newey west for heteroskedasticity and autocorrelation in vecmSo, I am trying to run a regression that requires me to log and take the first differences of it to …
OLS Regression - explanation of coefficients with control variablesGood morning, I´m doing an OLS regression with the dependent variable having a health number ( Cod…
How to write this with a loop (repetitive coding with numerical values that do not follow each other)Hello everyone, How can I write this faster? Code: svy: prop rech if form1==2 & gan1==14 …
Subscribe to:
Post Comments (Atom)
0 Response to marginal analysis after ivprobit
Post a Comment