Hi everyone!
I am running a multinomial logistic regression with mlogit and want to obtain the average marginal effects for all outcomes.
My estimation is the following:
mlogit EKC b4.Env_Degradation i.Region GDP POPURB INSSOC INDUSTRY TRADE FDI RENEWABLE, vce(cluster study)
margins, dydx (*) pr(out(1))
margins, dydx (*) pr(out(2))
margins, dydx (*) pr(out(3))
whereby EKC is a categorical variable with three different outcomes.
When I rerun the exact same code several times, I receive the same coefficients, but the standard errors are slightly different every time.
In a similar regression with slightly different control variables I sometimes receive the error: "Warning: variance matrix is nonsymmetric or highly singular", but when I rerun the exact same regression again, the estimation often works.
Is this a general problem in Stata when calculating marginal effects for mlogit? Or is there something wrong with my code?
I ran this in both Stata14 and Stata17 and standard errors were changing in both versions.
Thank you for your help!
I am running a multinomial logistic regression with mlogit and want to obtain the average marginal effects for all outcomes.
My estimation is the following:
mlogit EKC b4.Env_Degradation i.Region GDP POPURB INSSOC INDUSTRY TRADE FDI RENEWABLE, vce(cluster study)
margins, dydx (*) pr(out(1))
margins, dydx (*) pr(out(2))
margins, dydx (*) pr(out(3))
whereby EKC is a categorical variable with three different outcomes.
When I rerun the exact same code several times, I receive the same coefficients, but the standard errors are slightly different every time.
In a similar regression with slightly different control variables I sometimes receive the error: "Warning: variance matrix is nonsymmetric or highly singular", but when I rerun the exact same regression again, the estimation often works.
Is this a general problem in Stata when calculating marginal effects for mlogit? Or is there something wrong with my code?
I ran this in both Stata14 and Stata17 and standard errors were changing in both versions.
Thank you for your help!
Comment