Hello. Can someone please explain how does nesting in mixed command work? I have variables year, firm, business segment, profitability, industry.
I am doing:
egen corp_industry = group(firm industry)
mixed profitability year || _all: R.industry || _all: R.firm || corp_industry: business_segment, reml.
I would like business segment to be nested within cross classification of firm and industry. Is this correct way to model it? I want year to be fixed effect, other variables to be random effects.
Thanks in advance
I am doing:
egen corp_industry = group(firm industry)
mixed profitability year || _all: R.industry || _all: R.firm || corp_industry: business_segment, reml.
I would like business segment to be nested within cross classification of firm and industry. Is this correct way to model it? I want year to be fixed effect, other variables to be random effects.
Thanks in advance
Comment