Re: [R] My own distribution in survreg function

2011-02-04 Thread Terry Therneau
--- begin included message I'm trying to do some analysis using survreg function. I need to implement there my own distribution with density: lambda*exp(-lambda*y), where y = a1/(1+exp(-a2*x)). a1, a2 are unknown parameters and x >0. --- end inclusion -- The survreg

[R] My own distribution in survreg function

2011-02-03 Thread spooky
Hello, I´m trying to do some analysis using survreg function. I need to implement there my own distribution with density: lambda*exp(-lambda*y), where y = a1/(1+exp(-a2*x)). a1, a2 are unknown parameters and x >0. I need to get estimates of a1 and a2 (and lambda of course) I’m really