[R] truncated observed

Troels Ring tring at gvdnet.dk
Fri Apr 26 09:39:08 CEST 2002


Dear friends.
I believe this problem has been discussed in various forms now and then, so 
I hope you will forgive me I ask how to do a truncated model like this, 
where the observed y is recorded as 10 whenever it is higher or equal to 
that value

x <- rnorm(1000)
y <- 10*x + rnorm(1000)
y[which(y>10)] <- 10
and recover the "true" model ?


Best wishes
Troels


Troels Ring, MD
Department of Nephrology
Aalborg Hospital, Denmark
tring at gvdnet.dk
fax 00 45 99 32 22 34
tlf 00 45 99 32 22 42
    00 45 98 14 05 82 (home)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020426/a72d3ed5/attachment.html


More information about the R-help mailing list