[S] survfit + coxph

Paul Y. Peng (peng@stat.ualberta.ca)
Sun, 24 May 1998 22:50:44 -0600 (MDT)


Why

> survfit(coxph(Surv(time,cens)~group,data = my.data))

works, but

> (function(data)survfit(coxph(Surv(time,cens)~group,data = data)))(my.data)

doesn't work? It might be a simple question, but my brain doesn't seem
to work for me now. Thanks for help.

Regards,

Paul.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news