I have a dataset in which individuals were assessed at two time points during the study on a cognitive test, as such I was wondering which statistical model would be more appropriate for my data, either linear regression or mixed effects models?
The average length of follow up for my data is 59 months with a standard deviation of 43.03 (range is 0.63-167 months) with 88 (33%) of people having data for only one time point.
For linear regression, the approach I was thinking utilising was taking the delta of the test score between the two time points and regressing that against time (months between test scores).
If I used mixed effects models, the main issue I have is how to handle individuals who have only wave of data? While I know mixed effects models are especially robust in regards to the analysis of unbalanced data, would 33% missingnes cause issues?
Just sample R code highlighting the output using either linear regression or mixed models.
fm1 <- lm(mmse_difference ~ mmse_months_between*ORgrs_apoe, data = dat.wide)
summary(fm1)
Call:
lm(formula = mmse_difference ~ mmse_months_between * ORgrs_apoe,
data = newdat)
Residuals:
Min 1Q Median 3Q Max
-20.960 -3.957 1.854 5.200 12.550
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) -2.74185 2.20667 -1.243 0.216
mmse_months_between -0.01768 0.03051 -0.579 0.563
ORgrs_apoe 0.35163 1.17782 0.299 0.766
mmse_months_between:ORgrs_apoe -0.01973 0.01748 -1.129 0.261
Residual standard error: 7.3 on 170 degrees of freedom
(88 observations deleted due to missingness)
Multiple R-squared: 0.08481, Adjusted R-squared: 0.06866
F-statistic: 5.251 on 3 and 170 DF, p-value: 0.001725
Num. obs. 174
fm2 <- lme(mmse ~ mmse_months*ORgrs_apoe, random = ~mmse_months|patientid, data = dat.long, method = "ML", na.action = na.exclude)
summary(fm2)
Linear mixed-effects model fit by maximum likelihood
Data: dat.long
AIC BIC logLik
2797.467 2829.537 -1390.733
Random effects:
Formula: ~mmse_months | patientid
Structure: General positive-definite, Log-Cholesky parametrization
StdDev Corr
(Intercept) 7.2972822 (Intr)
mmse_months 0.1132399 0.85
Residual 2.9431616
Fixed effects: mmse ~ mmse_months * ORgrs_apoe
Value Std.Error DF t-value p-value
(Intercept) 24.635821 1.0959420 231 22.479130 0.0000
mmse_months -0.069918 0.0223198 172 -3.132544 0.0020
ORgrs_apoe -1.283348 0.6062892 231 -2.116726 0.0354
mmse_months:ORgrs_apoe -0.024952 0.0130561 172 -1.911103 0.0577
Correlation:
(Intr) mms_mn ORgrs_
mmse_months 0.438
ORgrs_apoe -0.882 -0.377
mmse_months:ORgrs_apoe -0.357 -0.891 0.397
Standardized Within-Group Residuals:
Min Q1 Med Q3 Max
-3.48643949 -0.31734164 0.07636708 0.26575764 2.49901891
Number of Observations: 407
Number of Groups: 233
Thanks.