search for: vetcoxph

Displaying 2 results from an estimated 2 matches for "vetcoxph".

Did you mean: fitcoxph
2012 Jul 17
0
Building a web risk calculator based on Cox PH--definitive method for calculating probability?
...dn't quite understand what he meant in his last sentence. Here is some code for you to quickly illustrate what you suggest. library(rms) library(survival) library(Hmisc) data(veteran) dd=datadist(veteran) options(datadist='dd') options(digits=4) obj=with(veteran,Surv(time,status)) vetcoxph=coxph(obj~celltype+trt,data=veteran) #I will fit models from both the survival and rms packages so you can #use what you like vetcph=cph(obj~celltype+trt,data=veteran,surv=TRUE,time.inc=5*365,x=T,y=T) #let's say the user inputted that their cell type was smallcell and their treatment was &q...
2012 Jul 18
0
Building a web risk calculator based on Cox, PH--definitive method for calculating probability?
...ntence. > > Here is some code for you to quickly illustrate what you suggest. > > library(rms) > library(survival) > library(Hmisc) > data(veteran) > dd=datadist(veteran) > options(datadist='dd') > options(digits=4) > obj=with(veteran,Surv(time,status)) > vetcoxph=coxph(obj~celltype+trt,data=veteran) #I will fit models from > both the survival and rms packages so you can > #use what you like > vetcph=cph(obj~celltype+trt,data=veteran,surv=TRUE,time.inc=5*365,x=T,y=T) > #let's say the user inputted that their cell type was smallcell and the...