Dear Collegues
I would like to ask your help to correctly run the code for a multilevel approach.
I´m working with data containing information for 1546 individuals, grouped into 14 groups (ranging from 11 to 24). The groups are defined by the variable "match" which in fact is the group variable that matches macroeconomic data (country level).
In the first Level I want to estimate the following equation:
Y = b0 + b1*X1 + b2*X2 + b3*X3 + error1
IN the second level we assume that coefficients are influenced by country level variables, as follows
b0 = a00 + a01*Z1 + a02*Z2 + a03*Z3 + a04*Z4+ error2
b1 = a10 + error3
b2 = a20 + a21*Z1 + a22*Z2+ a23 *Z3+ a24*Z4+ error3
b3 = a30 + error4
As you can see, it includes error terms and a change that can be performed (I believe) several options, the parameters that interest me are: a00; a01; a02; a03; a04; a10; a20 + a21; a22; a23; a24 and a30.
Could you help me to design the "mixed" function in such terms?
Thank you in advance
Fábio
Related Posts with Multilevel - Mixed-Effects Model Specification
How to round date variables to the nearest Monday?Hi everyone, I have a dataset with student test scores and test dates for the years 2008-2019. I ha…
How to create a variable that indicates the value of a variable associated with the largest value for another variableDear all, I am working with a dataset of firms in Brazil and I need to create some descriptive stat…
putexcel questionGood afternoon, I'm trying to run a loop and have the results of some calculations put into Excel. …
xtintregm, fe for non-normal dataI like the know the -xtintreg- for panel data with interval-censored Y, but it has a couple of limit…
How to do the calculation of matrix mutiplying databaseHi Stata users, I have some problems with the calculation of matrix with database. For example, I h…
Subscribe to:
Post Comments (Atom)
0 Response to Multilevel - Mixed-Effects Model Specification
Post a Comment