[R] truncated observed

Thomas Lumley tlumley at u.washington.edu
Fri Apr 26 17:16:00 CEST 2002


On Fri, 26 Apr 2002 ripley at stats.ox.ac.uk wrote:

> In your specific case I believe you can fit the model by survreg in
> package survival.  Something like
>
> survreg(Surv(y, y < 10) ~ x, dist="gaussian")
>
> In general you need to write a likelihood function and optimize it, e.g.
> with optim, or make use of the ability to add your own distributions to
> survreg.

The ability to add your own distributions to survreg() doesn't actually
work. It will work with the new version of "survival" coming out with
R1.5.0 and as it is now tested in an example it should keep working in the
future.

	-thomas

Thomas Lumley			Asst. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list