Displaying 1 result from an estimated 1 matches for "dponecs3".
2006 Apr 26
0
left-truncation in survreg
...R-users,
I know that a few people have asked whether survreg handles left-truncation
data and the reply that i have seen so far is that it does.
However, when I try to use survreg on left-truncated data, I got the
following error message.
> survcs3<-survreg(Surv(start,end,status)~AG, data=DPONEcs3,
dist="exponential")
Error in survreg(Surv(start, end, status) ~ AG, data = DPONEcs3, dist =
"exponential") :
Invalid survival type
Then i tried
> cc<-survreg(Surv(end,status)~AG, data=DPONEcs3, dist="exponential")
and it works perfectly fine.
May I...