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
Creating a variable for a "life event" in panel data which occurred in different waves for different individualsHi there, I am using the BHPS and testing how quickly respondents' happiness measures revert back to…
working of egen groupHello, I've data were I have for one reporting date several observations, but I only want keep the f…
Gravity equation estimated through Bonus Vetus OLSDear Stata users, Following Agostino and Trivieri (2014), I would like to adopt the Bonus Vetus OLS…
Excel files: Merge worksheets within Excel files and append Excel files with a loopDear Statalist, We have collected annual data on minorities in several countries for 25 years. Now …
generating an indexHi, I am trying to generate the index "z" in Stata, so that Z has the same value for all Xs and Ys. …
Subscribe to:
Post Comments (Atom)
0 Response to Problem with margins in multilevel random slope and stata
Post a Comment