[R] stepAIC(coxph) forward selection

2009-11-04 Thread Rupa Parvataneni
Dear R-Help, I am trying to perform forward selection on the following coxph model: >my.bpfs <- Surv(bcox$pfsdays, bcox$pfscensor) > b.cox <- coxph(my.bpfs ~ Cbase + Abase + Cbave + CbSD + KPS + gender + as.factor(eor) + Age)>stepAIC(b.cox, scope=list(upper =~ Cbase + Abase + Cbave + CbSD + KPS +

[R] residuals(lme) error message

2009-11-02 Thread Rupa Parvataneni
Dear R-help, I am trying to perform residual diagnostics on a repeated measures mixed effect model. With 3 time points as the fixed effect and subjects as the random effects. > time.linearc<- summary(lmer(cnim~(as.factor(time)), random= ~1|subj, data=ex.rmc, na.action=na.omit)) > time.linearc