Thank you very much, can I ask another question about an error for the same survival analysis
pv <- ifelse ( is.na(s1),next,(round(1 - pchisq(s1$chisq, length(s1$n) - 1),3)))[[1]]
Error in ifelseis.na(s1), next, (round(1 - pchisq(s1$chisq, length(s1$n) - :
no loop for break/next, jumping to top level
can you help correcting this code ,
• 0 views
•
link
You have one extra closing
)in second line before<. Remove that and run again.R tells you where the error is... Did you read the message?
You are right. There is a bug in the tutorial code.