Hi
I'am trying to obtain margins after MI estimate and test differences between each slopes by a group . I have read that we need to use mimrgns. however after a piecewise mixed model I don't know how to do that. I have a code to do that just for non imputed data. See below. I replace "margins" by "mimrgns" but the saving option is not compatible. how can I obtain all estimates in order to plot the graph???
thanks a lot
carole
forvalues t = 1/5 {
local at`t'
forvalues i = 1/4 {
summ time`i' if Time == `t', meanonly
local at`t' `at`t'' time`i' = `r(mean)'
}
display "at(`at`t'')"
}
tempfile results
margins porteur, at(`at1') at(`at2') at(`at3') at(`at4') at(`at5') saving(`results')
use `results', clear
keep _m1 _at _margin _ci*
rename _margin dep
rename _at time
reshape wide dep _ci*, i(time) j(_m1)
label var dep0 "Non-porteur"
label var dep1 "Porteur"
graph twoway (connect dep* time) (rcap _ci_lb0 _ci_ub0 time, legend(off)) ///
(rcap _ci_lb1 _ci_ub1 time, legend(off))
Related Posts with Mimrgns
Seeking advice on how to analyse different households' applicance use in response to a change in weatherHi all, To provide some context, here's a small sample of my data: input float(haze age ac_behav…
panel data regressionValues of all the variable in my panel data regression are coming out to significant except one. I c…
weight must be constant within ID in panel dataI first use logit to predict the likelihood of observations being treated. Then I calculated Inverse…
xtpqmlHello, I was wondering what adding xtpqml to an analysis does? How are the results influenced? Thank…
Clustered sandwich estimator gives very differ error in gllamm, xtlogit and xtlogit bootstrapHi there I work in the rodent learning field and have been trying to model the effect of different …
Subscribe to:
Post Comments (Atom)
0 Response to Mimrgns
Post a Comment