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 not good at programming. Is there any way how to implement this distribution to survreg without ‘big programming skills’? Can anyone tell me how to enter unknown parameters without giving them any exact initial value? Any help would be greatly appreciated, Katerina Konarikova -- View this message in context: http://r.789695.n4.nabble.com/My-own-distribution-in-survreg-function-tp3258645p3258645.html Sent from the R help mailing list archive at Nabble.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.