On Wed, Oct 26, 2011 at 2:37 PM, Lancaster, Robert (Orbitz) <robert.lancas...@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-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf Of Lancaster, Robert (Orbitz) > Sent: Wednesday, October 26, 2011 1:40 PM > To: r-help@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@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@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/ ______________________________________________ R-help@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.