Hello all,
I am trying to estimate a cross-classified model within the mixed command. I believe I have at least close the right code and I am hoping that someone could help me get more clarity. To sum things up, I have observations at the firm-state level (many observations for each firm and many observations within states) across 4 periods. I believe that observations are cross-classified within firms and states, so I would like to model the intercept for firms and states as random. I also have interactions that I am trying to estimate as well. So far my code is:
mixed y c.x1##c.x2 x3 x4 x5 x6 i.year || _all: r.firm||_all: r.state, var ml
However, when I estimate this model it provides results for 1 cluster, is this correct? I was expecting more detailed information for how many firms (50), how many states (50), and how many firm-state combinations (2500).
Two more questions:
If x2 is a 'state level' predictor, do I need to put it or the interaction in the 'random' part of the model?
Also, to get the ICCs for firm or state, I understand that I can divide their respective variance estimates by the residual...but how do I get the ICC value for the firm-state dyad?
Thank you in advance.
I am trying to estimate a cross-classified model within the mixed command. I believe I have at least close the right code and I am hoping that someone could help me get more clarity. To sum things up, I have observations at the firm-state level (many observations for each firm and many observations within states) across 4 periods. I believe that observations are cross-classified within firms and states, so I would like to model the intercept for firms and states as random. I also have interactions that I am trying to estimate as well. So far my code is:
mixed y c.x1##c.x2 x3 x4 x5 x6 i.year || _all: r.firm||_all: r.state, var ml
However, when I estimate this model it provides results for 1 cluster, is this correct? I was expecting more detailed information for how many firms (50), how many states (50), and how many firm-state combinations (2500).
Two more questions:
If x2 is a 'state level' predictor, do I need to put it or the interaction in the 'random' part of the model?
Also, to get the ICCs for firm or state, I understand that I can divide their respective variance estimates by the residual...but how do I get the ICC value for the firm-state dyad?
Thank you in advance.
Comment