Skip to content
Prev 115055 / 398498 Next

Error in if (!length(fname) || !any(fname == zname)) { :

hongyuan cao wrote:
The Design package does not like you to have complex variable names like 
that, and in general storing your data in a matrix when you want to 
treat columns as separate variables is not the best approach.  I would 
use something like

S <- with(d, Surv(  ) )   # d = data frame
h <- as.data.frame(colon)  # assumes colon is a matrix;make sure it had 
column names
cph(S ~ strat(v1)+v2+v3+v4, data=h)