Defining variable as level-2-effect
Posted: Wed May 05, 2010 11:47 am
Dear all,
I want to identify characteristics that determine the use of a certain technology in a hospital. To do so, I will run a 2-level random intercept logistic model. My first level variables are patients’ characteristics; the second level variables will be hospital characteristics, e.g. number of beds. I imported a Stata dataset sorted by (1) hospital id and (2) patient id.
I want to use the total number of hospital beds as an explanatory variable. How can I define this variable as a j-level variable (instead of the default, the ij-level). Do I have to make any adjustments before importing the stata dataset?
Thank you in advance for your help!
I want to identify characteristics that determine the use of a certain technology in a hospital. To do so, I will run a 2-level random intercept logistic model. My first level variables are patients’ characteristics; the second level variables will be hospital characteristics, e.g. number of beds. I imported a Stata dataset sorted by (1) hospital id and (2) patient id.
I want to use the total number of hospital beds as an explanatory variable. How can I define this variable as a j-level variable (instead of the default, the ij-level). Do I have to make any adjustments before importing the stata dataset?
Thank you in advance for your help!