Re: [Rd] Evaluation without using the parent frame

2012-05-16 Thread Duncan Murdoch
On 12-05-16 4:59 PM, Terry Therneau wrote: I've been tracking down a survival problem from R-help today. A short version of the primary issue is reconstructed by the following simple example: library(survival) attach(lung) fit<- coxph(Surv(time, status) ~ log(age)) predict(fit, newdata=data.fra

[Rd] Evaluation without using the parent frame

2012-05-16 Thread Terry Therneau
I've been tracking down a survival problem from R-help today. A short version of the primary issue is reconstructed by the following simple example: library(survival) attach(lung) fit <- coxph(Surv(time, status) ~ log(age)) predict(fit, newdata=data.frame(abe=45)) Note the typo in the last li