I am trying to write stata HLM regression code that has three levels including Country, Year, and Industry. What I particularly want to do is to cross-classify country and industry, and at the same time nest year within both industry and country. Is the code below an appropriate code? If not, what would you suggest? I would appreciate your contribution.
xtmixed Y X ||_all:R.Country || Industry: || Year:
xtmixed Y X ||_all:R.Country || Industry: || Year:
Comment