I run a multilevel model
xtmelogit vd vi if eurozone==1 || countryid:, ml var
and the results come out with the independent variable as statistically significant.
If I repeat the same multilevel model but adding different slopes for the same variable that was significant before
xtmelogit vd vi if eurozone==1 || countryid: vi, ml var
the v1 loses its significance because the standard deviation is very large.
Does this make sense? Should I keep the first model or the second one?
I would like to represent the margins of an interaction in the model
xtmelogit vd vi##vi2 if eurozone==1 || countryid: vi, ml var
How can i do it?
Stata only allows me to represent the fixed part when I make margins.
If not a get an error.
margins, dydx(vi2) at(v1=(5(10)20)) predict (mu fixed)
Thank you.
Related Posts with Problem with margins in multilevel random slope and stata
population distribution for stsplitI have a dataset where I calculated incidence by age groups using the following command: stset cens…
Variable creationHello everyone, In a paper I am writing for my studies, I want to recreate a proxy measuring earnin…
post doesn't post results successfullyHi Stata Users, I am using Stata 17 with the commands below to post results to file but for some re…
Predict and margins after melogit with interactionsHello Statalisters, I am running a mixed effect model in Stata 15.1 using melogit, with weights. I n…
Automating meta-analyses code for several outcomes using metaanHi, I have data for 40 outcomes for 2 studies. I am wondering if there is a way to automate this ra…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with margins in multilevel random slope and stata
Post a Comment