Dear all,
I have a few questions related to the user-written program fmlogit. I'm trying to fit a model with four proportions adding up to 1 as dependent variables, a continuous variable modeled as restricted cubic spline with 4 knots as independent variable, and a few additional control variables.
My first question is the following: after fitting fmlogit and looking at marginal effects, is there a way to obtain the multi-df p-value for the combined effect of the spline variable on each proportion? In the example below, the spline components show p-values of 0.089, 0.257 and 0.267, but I would be interested in the p-value of the overall effect of spline on governing
use http://fmwww.bc.edu/repec/bocode/c/citybudget.dta, clear
mkspline spl_popdens = popdens, cubic nknots(4)
fmlogit governing safety education recreation social urbanplanning, eta(spl_* minorityleft noleft houseval)
margins, dydx(spl_*) predict(outcome(governing))
My second question is: is it expected that an independent variable has a significant p-value for its coefficient but not for the marginal effect or vice versa? In the example above, the p-value for the variable noleft on safety is 0.191, but the p-value from:
margins, dydx(noleft) predict(outcome(safety))
is <0.001
Finally, how would you report the effect of a spline variable on each proportion? I guess a plot with predicted probabilities for each outcome as a function of the independent variable is the only way to proceed?
Many thanks,
Manuel
I have a few questions related to the user-written program fmlogit. I'm trying to fit a model with four proportions adding up to 1 as dependent variables, a continuous variable modeled as restricted cubic spline with 4 knots as independent variable, and a few additional control variables.
My first question is the following: after fitting fmlogit and looking at marginal effects, is there a way to obtain the multi-df p-value for the combined effect of the spline variable on each proportion? In the example below, the spline components show p-values of 0.089, 0.257 and 0.267, but I would be interested in the p-value of the overall effect of spline on governing
use http://fmwww.bc.edu/repec/bocode/c/citybudget.dta, clear
mkspline spl_popdens = popdens, cubic nknots(4)
fmlogit governing safety education recreation social urbanplanning, eta(spl_* minorityleft noleft houseval)
margins, dydx(spl_*) predict(outcome(governing))
My second question is: is it expected that an independent variable has a significant p-value for its coefficient but not for the marginal effect or vice versa? In the example above, the p-value for the variable noleft on safety is 0.191, but the p-value from:
margins, dydx(noleft) predict(outcome(safety))
is <0.001
Finally, how would you report the effect of a spline variable on each proportion? I guess a plot with predicted probabilities for each outcome as a function of the independent variable is the only way to proceed?
Many thanks,
Manuel
Comment