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
barchart: how to put the frequency axis on a log scaleDear all: I have a categorical variable with vastly unequal frequencies. I would like to display th…
Getting the average of all combinations of different variables in stataI'm trying to get the average hours used by individuals of different combinations of characteristics…
Fuzzydid with large datasetI am analysing the effect of a social transfer earmarked for energy consumption on the consumption o…
Principal Component Analysis for Constructing a Wealth IndexI want to create a DHS-style wealth index using Principal Component Analysis. I have 27 binary varia…
Matrix inversion in Stata 16 and 17 leads to different resultsHi all, I think I found some behaviour of Stata 16 vs Stata 17 which I do not understand and is worr…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with margins in multilevel random slope and stata
Post a Comment