Thank You,Eric. I run this code without id="id" and it worked!
Eric Berger :
Medic via R - help < r - help @ r -project.org >
wrote:
addicts.cp=survSplit(addicts, cut=addicts$survt[addicts$status==1],
> end="survt", event="status",start="start", id="id")
>ERROR in survSplit(addicts, cut
You need to read the Help page for the function survSplit
?survSplit
states that the id argument is a
"character string with the name of new id variable to create (optional).
This can be useful if the data set does not already contain an identifier"
The addicts data.frame has as its first column
When I run the code from the book Kleinbaum "Survival analysis" (7. Running an
extended cox model. Page 646) I got an ERROR. What do you think is the reason?
I attach a file with few lines of dataset "addicts-dput.r".
> library(cmprsk)
> addicts = read.csv ("addicts.csv")
id clinic status su
3 matches
Mail list logo