Dear all
I'm working in Stata 14.2.
I'm doing a two-level logit model with melogit. I'm interested in a cross-level interaction between the variable win (first level) and the variable camp (second level).
I think in this case, I have to take the first level variable in the random part of the model. Is this right?
Because win ist a factor variable i need the R. notation.
In the Stata manuals the .R notation ist normally used with the _all option. But this option takes all cluster together. I don't understand why this should makes sense.
So my question is what ist the difference between the following models? and which one should I take?
Code1
. melogit entscheid i.win##i.wissen i.win##i.prä i.win##i.Wirtschaft age i.educ i.sex i.lang i.win##c.camp || _all: R.win, cov(unstructured) intpoints(30)
Code2 with group identity variable
melogit entscheid i.win##i.wissen i.win##i.prä i.win##i.Wirtschaft i.win##ib2.zukunft age i.educ i.sex i.lang i.win##c.camp || idnr:R.win, covariance(unstructured) intpoints(30)
idnr ist the identifying variable.
And why is there only one var(_cons) in the output? Should not be there a variance for each category of win?
Related Posts with Multilevel crossed interaction for factor variable
How to calculate ICC when I use command gllamm?Dear statalists, I recently have been puzzeled by how to calculate ICC when I use command gllamm.In …
Displace full name of variableHi , When I use the list variable, display short name "chan~n_3", but it is actually "change_land_ow…
Testing for differences in proportions with paired data and svyI’m trying to test if there are significant differences between multiple time periods for a group of…
Spatial Auto-correlation and Interpreting Moran's I StatisticI'm working with non-negative count data at the county level, with my dependent variable being the n…
Do "Driscoll-Kraay standard errors" correct heteroskedasticity and autocorrelation in Panel Data?Hi! I was using xtreg, fe command on my Panel Data with N = 33, T = 25 and it had heteroskedasticit…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel crossed interaction for factor variable
Post a Comment