Dear Statalist,
I need to analyze data with complex structures.
My data set consists of individuals who are fully nested within teams, which are nested "crossly" within functions and locations, which are fully nested within firms.
(individuals) ---> (teams) ---> (functions) and (locations) ---> (firms)
I guess I need to do four-level cross-classified multi-level analysis and I have the following hypothetical syntax:
Code:
xtmixed y x || firm: || _all:R.function: || _all:R.location: || team:
I hope someone can confirm whether it is right, or correct it if it is wrong. Thank you for helping me out.
Best,
Eunhee
Related Posts with Syntax of cross-classified multilevel model
Doubts on Diff-in-Diff methodDear Stata users, I am writing this post hoping that someone could help me. Here the story, I am a…
Coding linear time trend with missing yearsI am familiar with creating linear time trends. For example, if I have study years 1996, 1997, 1998 …
Adding category to variable and sustain response after point of change in longitudinal datasetDear Stata Listers, I am working with a 19 wave longitudinal dataset of around 1,000 respondents, w…
🙋 How to display full matrix names?This Code: clear all version 15.1 matrix A = 32 matrix rownames A = interview__id matrix list A …
Can I regress company data as dependent and macroeconomic data as independent?Can I regress company data (as firm performance - the dependent variable) on macroeconomic data (as …
Subscribe to:
Post Comments (Atom)
0 Response to Syntax of cross-classified multilevel model
Post a Comment