-xtmixed- Crossed effets & hierarchy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

-xtmixed- Crossed effets & hierarchy

I have estimated the following crossed random effects model:

xtmixed y x1 x2 x3 || _all: R.model || quarter: mle

this already worked pretty good.

Now, the models are nested within brands, so i would like to add one more level to the model.

Is this right like this:

xtmixed y x1 x2 x3 || brand: || _all: R.model || quarter:, mle ??

The thing that confuses me is the need of the _all, R.. I dont really see what that is used for. I followed the method presented in

Multilevel and Longitudunal Modeling Using Stata, Rabe-Hesketh & Skrondal, Chapter 8

Thanks in advance for any review


Tobias Friedli
Bachelor Student at the University of Zurich