Follow up:
The critical line seems to be in survexp around line 97
rdata <- data.frame(eval(rcall, m))
If changed to:
old.stringsAsFactors <- options()$stringsAsFactors
options(stringsAsFactors=TRUE)
rdata <- data.frame(eval(rcall, m)) ### <- seems to be critical
options(stringsAsFactors=old.
Dear Peter, Dear All,
a further attempt led me to an answer. If I set
options(stringsAsFactors=TRUE), which I usually have set to FALSE, no
error occurs.
I am, however not happy with this solution.
Heinz
Thank you, Peter
after setting options(error=recover), see the output below, once for
Thank you, Peter
after setting options(error=recover), see the output below, once for
frame number 2, which I suspect to be the problem, once for frame number 1.
Heinz
> expect <-
+ survexp(futime ~ ratetable(age=(accept.dt - birth.dt),
+ sex=1,year=accept.dt,ra
On Dec 31, 2010, at 10:21 , Heinz Tuechler wrote:
> Dear All,
>
> reposting, because I did not find a solution, maybe someone could check the
> example below.
>
> It's taken from the help page of survdiff. Executing it, gives the error
>
> "Error in floor(temp) : Non-numeric argument to mathe
Dear All,
reposting, because I did not find a solution, maybe someone could
check the example below.
It's taken from the help page of survdiff. Executing it, gives the error
"Error in floor(temp) : Non-numeric argument to mathematical function"
best regards,
Heinz
library(survival)
## Exa
5 matches
Mail list logo