Skip to content

survreg & gompertz

3 messages · Matthias Ziehm, David Winsemius

#
Hi all,

Sorry if this has been answered already, but I couldn't find it in the 
archives or general internet.

Is it possible to implement the gompertz distribution as 
survreg.distribution to use with survreg of the survival library?
I haven't found anything and recent attempts from my side weren't 
succefull so far.

I know that other packages like 'eha' and 'flexsurv' offer functions 
similar to survreg with gompertz support. However, due to the run-time 
environment were this needs to be running in the end, I can't use these 
packages :(

Same questions for the gompertz-makeham distribution.

Many thanks!

Matthias
#
On Nov 15, 2012, at 5:38 AM, Matthias Ziehm wrote:

            
A Markmail/Rhelp search on:  gompertz survreg  ...brings this link to a reply by Terry Therneau. Seems to address everything you asked and a bit more

http://markmail.org/search/?q=list%3Aorg.r-project.r-help+gompertz+survreg#query:list%3Aorg.r-project.r-help%20gompertz%20survreg+page:1+mid:6xdlsmo272oa7zkw+state:results

(Depending on how your mailer breaks URLs you may need to paste it back together.)
#
On 15/11/12 21:22, David Winsemius wrote:
Thanks! I hadn't read this thread because of the missleading title. 
However, now I've got follow up questions, on that explanation:
On Feb 5, 2010 at 8:48:08 am, Terry Therneau wrote:
If I do the math correctly from the above given extreme value hazard to 
Gompertz hazard. It needs to b = 1/ \sigma * exp(-\eta/ \sigma)
Other wise the 1/ \sigma of the Extreme value hazard is missing, isn't it?
Here I got really lost were the addition double exp suddenly comes from 
and how it fits in.
Given the above I would have thought that:
g(x,b,c) = f(x, \eta=-1/log(c)*log(b*1/log(c)), \sigma= 1/log(c) ) for x>=0

Can anyone clarify these thinga to me, please?

Matthias