Hi, I'm having problems with the Zelig package - when using the below R displays the follwing message (I'm running R i386 2.15.3 for Windows and have updated all the Zelig packages): z.out<-zelig(Surv(psurv2, pcens2) ~ ren_sup3 + age, data=data_urgent, model="coxph") ** The model "coxph" is not available with the currently loaded packages, ** and is not an official Zelig package. ** The model's name may be a typo. Any suggestions? Regards, Steve Knight
I think Zelig uses model="cox.ph" ( https://github.com/zeligdev/ZeligMisc/blob/master/tests/coxph.R) -thomas On Wed, Mar 6, 2013 at 2:54 AM, Stephen Knight <stephenknight@doctors.org.uk> wrote:> Hi, > > I'm having problems with the Zelig package - when using the below R > displays the follwing message (I'm running R i386 2.15.3 for Windows and > have updated all the Zelig packages): > > z.out<-zelig(Surv(psurv2, pcens2) ~ ren_sup3 + age, > data=data_urgent, model="coxph") > > ** The model "coxph" is not available with the currently loaded packages, > ** and is not an official Zelig package. > ** The model's name may be a typo. > > Any suggestions? > > Regards, > Steve Knight > > ______________________________**________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/**listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help> > PLEASE do read the posting guide http://www.R-project.org/** > posting-guide.html <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >-- Thomas Lumley Professor of Biostatistics University of Auckland [[alternative HTML version deleted]]
On Mar 5, 2013, at 5:54 AM, Stephen Knight wrote:> Hi, > > I'm having problems with the Zelig package - when using the below R displays the follwing message (I'm running R i386 2.15.3 for Windows and have updated all the Zelig packages): > > z.out<-zelig(Surv(psurv2, pcens2) ~ ren_sup3 + age, > data=data_urgent, model="coxph") > > ** The model "coxph" is not available with the currently loaded packages, > ** and is not an official Zelig package. > ** The model's name may be a typo.When this question (or at least something like it ) was asked last November on the Zelig mailing lis, rolling back to earlier versions was the suggestion: http://comments.gmane.org/gmane.comp.lang.r.zelig/848 I do not see any mention of "coxph" or "cox.ph" as a model specification in the current docs for that package. -- David Winsemius Alameda, CA, USA