[R] Adjusting published survival functions

Jose Iparraguirre Jose.Iparraguirre at ageuk.org.uk
Wed Jul 24 16:13:51 CEST 2013

Have you tried the packages 'survival' and 'eha' yet? You can use the survreg() function in the former to compare between different models.

Have a look at this tutorial: http://www.openintro.org/stat/surv.php (a copy can also be found here: http://anson.ucdavis.edu/~hiwang/teaching/10fall/R_tutorial%201.pdf)

Here's the task view to learn what's available in R to run survival analysis: http://cran.r-project.org/web/views/Survival.html 

Hope this helps.


Prof. José Iparraguirre
Chief Economist
Age UK

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Emmanuel Giménez
Sent: 24 July 2013 10:33
To: r-help at r-project.org
Subject: [R] Adjusting published survival functions


I would like to know how to adjust survival functions in R and after reading lots of posts I don't have it clear. I downloaded the fitdistrplus package but it seems me like it only fits univariately the functions.
Being specific , having a survival curve which corresponds to a set of data such as:
"months"	"survival"
1	0,9
2	0,85
3	0,83
3,5	0,8
4,2	0,75
5	0,43
7	0,4
9	0,3
11	0,3
13	0,3

i'm searching the parameters that fit with the curve with loglogistic, lognormal and weibull, and then, comparing the AICs of the adjustments, to select the best fit curve.
Could you please help me?

Thank you in advance,

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

The Wireless from Age UK | Radio for grown-ups.


If you’re looking for a radio station that offers real variety, tune in to The Wireless from Age UK. 
Whether you choose to listen through the website at www.ageuk.org.uk/thewireless, on digital radio (currently available in London and Yorkshire) or through our TuneIn Radio app, you can look forward to an inspiring mix of music, conversation and useful information 24 hours a day.

Age UK is a registered charity and company limited by guarantee, (registered charity number 1128267, registered company number 6825798). 
Registered office: Tavis House, 1-6 Tavistock Square, London WC1H 9NA.

For the purposes of promoting Age UK Insurance, Age UK is an Appointed Representative of Age UK Enterprises Limited, Age UK is an Introducer 
Appointed Representative of JLT Benefit Solutions Limited and Simplyhealth Access for the purposes of introducing potential annuity and health 
cash plans customers respectively.  Age UK Enterprises Limited, JLT Benefit Solutions Limited and Simplyhealth Access are all authorised and 
regulated by the Financial Services Authority. 

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are 
addressed. If you receive a message in error, please advise the sender and delete immediately.

Except where this email is sent in the usual course of our business, any opinions expressed in this email are those of the author and do not 
necessarily reflect the opinions of Age UK or its subsidiaries and associated companies. Age UK monitors all e-mail transmissions passing 
through its network and may block or modify mails which are deemed to be unsuitable.

Age Concern England (charity number 261794) and Help the Aged (charity number 272786) and their trading and other associated companies merged 
on 1st April 2009.  Together they have formed the Age UK Group, dedicated to improving the lives of people in later life.  The three national 
Age Concerns in Scotland, Northern Ireland and Wales have also merged with Help the Aged in these nations to form three registered charities: 
Age Scotland, Age NI, Age Cymru.

More information about the R-help mailing list