I am interested in doing:
(1) MLM with a continuous dependent and independent variable,
(2) Assessing interaction by time,
(3) Assessing interaction of above by group
I wanted to make sure that I am proceeding correctly, both programmatically and interpretation-wise.
**********************
To start, I have the following syntax to evaluate (1) and (2) above:
xi: xtmixed sym sat time sat_time || ID: time, variance covar(un) mle
where sym (my continuous dependent variable) = disease symptom level (higher numbers means more symptoms),
sat (my continuous independent variable) = satisfaction with healthcare (Likert scale of 0 strongly disagree to 4 strongly agree),
time = time variable (year 1-year 5), and
sat_time = interaction between satisfaction with healthcare and time
ID = identification number of participant
If this is correct, and if there is significant interaction by time (i.e., sat_time p<0.05), how would I interpret the results?
I want to know how satisfaction with healthcare relates to disease symptom level, and whether or not this varies by time. If it varies by time (i.e., sat_time p<0.05), what would the coefficient tell us? Is this the unit increase in disease symptom level over time per unit increase of satisfaction level with healthcare?
*****************
To assess (3), I added to the previous syntax in the following:
xi: xtmixed sym sat time grp sat_time sat_grp time_grp sat_time_grp || ID: time, variance covar(un) mle
where grp = intervention group (1 vs. 0),
sat_time = interaction between satisfaction and time
sat_grp = interaction between satisfaction and group
time_grp = interaction between time and group
sat_time_grp = interaction among satisfaction, time and group
If there is significant interaction by group (i.e., sat_time_grp p<0.05), how would I determine the direction of association for each group and whether each 'main effect' is significant for each group? Would this be the following syntax:
lincom sat_time /*group=0*/
lincom sat_time + sat_time_grp + /*group=1*/
I assume the interpretation remains the same as above but tailored to each group where there is significant 'main effect', with a negative coefficient interpreted as a unit decrease in symptom level over time per unit increase in satisfaction level with healthcare. Your assistance and confirmation would be much appreciated.
Related Posts with Syntax check for MLM with continuous dependent and independent variable and assessing for 2nd degree interaction 1) by time, and 2) by group
why noconst option generate so different results in Nlogit?Dear experts, I used Nlogit to analyse data. First, I did not include noconst in level 2 equation. …
generate variable with _N but with missing values as welI have a problem with my data. This is an example. Code: input float(id wave year income) 101 2009…
Counting variables with a stub across rows in frame, add count to new columnHi all, I am a newbie to Stata, recently transitioned from R. I am struggling with combining the le…
Using pcarrowi dyanmically?Hello everyone, Is there any way to use pcarrowi command dynamically? I'm trying to find a way to i…
Drop empty variables when importing spss into stataI have an spss dataset that has ~27000 variables, but only ~500 include any values. The rest are bla…
Subscribe to:
Post Comments (Atom)
0 Response to Syntax check for MLM with continuous dependent and independent variable and assessing for 2nd degree interaction 1) by time, and 2) by group
Post a Comment