Displaying 1 result from an estimated 1 matches for "mccallrisk".
2013 Jul 23
0
Coxme Package Error Message Help
...t;2","3","4": 3 3 3 3 3 3 3 3 3 3 ...
$ Dummy_Time: Factor w/ 3 levels "1","2","3": 2 2 2 2 3 3 3 3 1 1 ...
$ faketime : num 1 2 2 2 1 2 2 2 1 2 ...
The faketime column is built using the following code:
faketime <- rep(1, times = nrow(mccallrisk))
faketime[mccallrisk$Used == 0] <- 2 #2 for control, 1 for case
data <- cbind(mccallrisk, faketime)
rm(faketime)
When I run the analysis code for a univariate model I have no issues:
mcc.risk<-coxme(Surv(faketime,Used)~ kauf_avg +
(1|ID)+strata(Strata),data=data)
mcc.risk
Cox mixed-eff...