Mixed model: does arm change the trajectory?
Model checkpain_score ~ treatment_arm * month + age + IL6
- "pain_score ~ treatment_arm * month + age",- data=model_data,+ "pain_score ~ treatment_arm * month + age + IL6",+ data=model_data.merge(olink.groupby("patient_id", as_index=False, observed=True)["IL6"].mean(), on="patient_id", how="left"),