[R] survival: fitting equation to survival curve?

Joshua Wiley jwiley.psych at gmail.com
Thu Oct 27 06:49:50 CEST 2011


On Wed, Oct 26, 2011 at 2:37 PM, Lancaster, Robert (Orbitz)
<ROBERT.LANCASTER at orbitz.com> wrote:
> I was able to resolve my issue.  I assumed my survival rates followed an exponential, so took the log of them and fit the resulting values to a linear model.
>
> Would survreg allow me skip this step?  I'm a newbie to the survival package so am not very familiar with its capabilities.

Yep, see ?survreg

particularly the 'dist' argument and the examples section showing how
to fit a model assuming an exponential distribution.

HTH,

Josh

>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Lancaster, Robert (Orbitz)
> Sent: Wednesday, October 26, 2011 1:40 PM
> To: r-help at r-project.org
> Subject: [R] survival: fitting equation to survival curve?
>
> Given a survfit object, is it possible to fit an equation to the resulting survival curve?  Is this possible?  What about with a coxph or survreg object?
>
> TIA,
> Rob
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, ATS Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/



More information about the R-help mailing list