Hi guys,
I am using the "mixed" command to regress the effect of COVID-19 on students' achievements. I am trying to use two variables to represent the COVID, one is binary (Post_COVID: 0 for Before the Epidemic, 1 for During the Epidemic), and another is continuous (SchoolClosureDays: means the days of Covid-induced School Closure). Binary Variable: Represents a dichotomous outcome. It indicates whether students were affected by school closure (at least one day) versus not at all, which simplifies the complexity of the situation. Continuous Variable: Represents a nuanced view of the relationship. It captures the impact of incremental changes (each additional day of closure) on student achievement, allowing for a detailed understanding of how longer closures progressively affect outcomes. Can I include both the continuous variable and the binary variable in the same model? I am afraid there may be an overlap in the effects, meaning they might capture similar aspects of the pandemic’s impact. Is there any good way to check if the effects of the two variables are independent? Or any idea about if it is reasonable to include both in the model? Thank you~
This is the command I use: mixed Achievements Time SchoolClosureDays i.Post_COVID##i.Gender i.Post_COVID##i.IMMIG i.Post_COVID##i.SES c.SchoolClosureDays#i.Gender c.SchoolClosureDays#i.IMMIG c.SchoolClosureDays#i.SES i.Gender#c.Time i.IMMIG#c.Time i.SES#c.Time|| CNTRYID:Time, covariance(unstructured) nolog vce(robust)
Gender(binary,0=Girls), IMMIG(immigration backgrounds, 0=native, 1=second-genration, 2=first-generation), SES(socia-economic background, 0=low SES, 1=medium SES, 2=high SES), Time(continuous, 2003-2023), CNTRYID=country identifier.
Yin
I am using the "mixed" command to regress the effect of COVID-19 on students' achievements. I am trying to use two variables to represent the COVID, one is binary (Post_COVID: 0 for Before the Epidemic, 1 for During the Epidemic), and another is continuous (SchoolClosureDays: means the days of Covid-induced School Closure). Binary Variable: Represents a dichotomous outcome. It indicates whether students were affected by school closure (at least one day) versus not at all, which simplifies the complexity of the situation. Continuous Variable: Represents a nuanced view of the relationship. It captures the impact of incremental changes (each additional day of closure) on student achievement, allowing for a detailed understanding of how longer closures progressively affect outcomes. Can I include both the continuous variable and the binary variable in the same model? I am afraid there may be an overlap in the effects, meaning they might capture similar aspects of the pandemic’s impact. Is there any good way to check if the effects of the two variables are independent? Or any idea about if it is reasonable to include both in the model? Thank you~
This is the command I use: mixed Achievements Time SchoolClosureDays i.Post_COVID##i.Gender i.Post_COVID##i.IMMIG i.Post_COVID##i.SES c.SchoolClosureDays#i.Gender c.SchoolClosureDays#i.IMMIG c.SchoolClosureDays#i.SES i.Gender#c.Time i.IMMIG#c.Time i.SES#c.Time|| CNTRYID:Time, covariance(unstructured) nolog vce(robust)
Gender(binary,0=Girls), IMMIG(immigration backgrounds, 0=native, 1=second-genration, 2=first-generation), SES(socia-economic background, 0=low SES, 1=medium SES, 2=high SES), Time(continuous, 2003-2023), CNTRYID=country identifier.
Yin
Comment