Re: [R] Use of survreg.distributions

From: Abdus Sattar <>
Date: Thu, 24 Apr 2008 19:21:58 -0700 (PDT)

Dear R-user:  

I am using survreg(Surv()) for fitting a Tobit model of left-censored longitudinal data. For logarithmic transformation of y data, I am trying use survreg.distributions in the following way: tfit=survreg(Surv(y, y>=-5, type="left")~x + cluster(id), dist="gaussian",, scale=0, weights=w)


tfit=survreg(Surv(y, y>=-5, type="left")~x + cluster(id), dist=my.gaussian,, scale=0, weights=w)  

If I run these codes then I got the following error message,  

Error in survreg(Surv(y, y >= -5, type = "left") ~ x + : Invalid distribution object

Does anybody can help me in identifying the error(s) in these code please?  

Advance thanks for your time.  

Abdus Sattar

[[elided Yahoo spam]]

        [[alternative HTML version deleted]] mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri 25 Apr 2008 - 06:35:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 26 Apr 2008 - 22:30:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive