Dear users,
I'm estimating an ordered probit model. My dependent variable has four categories, ranging from 0 to 3.
I want to test if one of my independent variables (continuous) has an inverted u-shaped effect over the highest level of my dependent variable (3).
To do so, I want to compute and plot marginal effects. But I get an error.
Here's the oprobit regression:
Then, I want to run the marginal effects for the full range of my variable:
But I get the following error:
0 invalid name
(error in option xb())
I've been testing different alternatives but I haven't been able to figure out where's the problem.
Many thanks in advance.
I'm estimating an ordered probit model. My dependent variable has four categories, ranging from 0 to 3.
I want to test if one of my independent variables (continuous) has an inverted u-shaped effect over the highest level of my dependent variable (3).
To do so, I want to compute and plot marginal effects. But I get an error.
Here's the oprobit regression:
Code:
oprobit Variety_1_Output2 /// c.EI_7categs##c.EI_7categs /// c.tertius_avg_c /// $controls, robust cluster(tipo_org_2)
Code:
qui sum c.EI_7categs, d margins, at(c.EI_7categs =(`r(min)'(0.1)`r(max)')) predict(outcome(3))
0 invalid name
(error in option xb())
I've been testing different alternatives but I haven't been able to figure out where's the problem.
Many thanks in advance.
Comment