Re: [R] Fold function with several time varying covariates

2009-06-30 Thread Bjarke Christensen
Helen, You are asking for help with a function which is not part of R, and your question is nowhere nearly detailed enough to make it possible to replicate the error. However, if the function you are using is the one available in http://cran.r-project.org/doc/contrib/Fox-Companion/app-scripts.zip

Re: [R] Fold function with several time varying covariates

2009-06-29 Thread Allan Engelhardt
Looks like a problem with the cov.names argument, not cov. Can you make a stand-alone example showing the error? Allan. On 29/06/09 14:31, Jenkins, Helen wrote: > The error message when I use list is: > " s.matrix(!is.na(new.data[, cov.names])) : >invalid subscript type 'list'" > [...] >

Re: [R] Fold function with several time varying covariates

2009-06-29 Thread Jenkins, Helen
Cc: 'r-help@r-project.org' Subject: Re: [R] Fold function with several time varying covariates On 28/06/09 18:02, Jenkins, Helen wrote: > But this just gives me an error message. > What error message? __ R-help@r-project.org mailing list htt

Re: [R] Fold function with several time varying covariates

2009-06-29 Thread Allan Engelhardt
On 28/06/09 18:02, Jenkins, Helen wrote: But this just gives me an error message. What error message? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/post

[R] Fold function with several time varying covariates

2009-06-28 Thread Jenkins, Helen
Hi I'm trying to use the fold function as described here: http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-cox-regression.pdf Page9 It does say that you can use this when you have more than one time varying covariate: in the description of the argument cov it says: "cov: A vector gi