I need your help with my problem. So, after step of imputation missing data through MICE method, I got multiple imputed dataset. Then, I pooled the estimates and coefficients with mixed effect cox model. But in the final result, I got NA for the random effect terms. Is it normal ?
For more infos, I have 27 860 patients in the database which has a multilevel structure. In the database, I have a character variable called "Area" that represents an area of living of people. For the variable Area, there are 17 000 values distincts.
My goal is to examine the role spatial accessibility to a medical event. I intended to use the mixed effects cox model with Area as random effect.
Here is the steps of my analysis:
watt_final_imp <- mice(watt_final, m = 5, maxit = 10, seed = 123, method = "rf") #I used rf method because all of the missing data variables are factors.
cox.fit <- with(data_imputed, coxph(Surv(time, event_status) ~ age + sex + ... + smoke + spatial_accessibility + frailty(Area)))
cox.fit
pool.fit <- pool(cox.fit)
summary(pool.fit)
Below are the results of one imputed dataset:
coef se(coef) se2 Chisq DF p
age -4.29e-02 1.10e-03 1.01e-03 1.52e+03 1 < 2e-16
....
SmokeYes 1.46e-01 3.32e-02 3.08e-02 1.94e+01 1 1.0e-05
Spatial_accessibilityHigh -2.43e-02 9.06e-02 8.17e-02 7.16e-02 1 0.78908
frailty(Area) 2.30e+03 1890 2.0e-10
Iterations: 6 outer, 34 Newton-Raphson
Variance of random effect= 0.34 I-likelihood = -63326.5
Degrees of freedom for terms= 0.8 0.9 0.8 0.8 1.7 0.9 3.4 0.9 2.8 4.3 1.9 0.9 0.9 0.9 0.9 0.9 2.5 0.8 0.8 0.9 0.9 1.7 0.8 0.8 1889.6
Likelihood ratio test=13559 on 1923 df, p=<2e-16
n= 27860, number of events= 6791
Below are the results after pooling estimates and coeff:
term estimate std.error statistic df p.value
1 age -0.042260183 0.001401088 -30.16240416 25.05626 3.248679e-21
.....
37 SmokeYes 0.152341302 0.036133085 4.21611667 134.33406 4.536397e-05
38 Spatial_accessibilityHigh -0.021317365 0.089576125 -0.23798043 5174.21229 8.119057e-01
39 frailty(Area) NA NA NA NA NA
Thanks in advance