Re: [R] problem with Surv

2008-12-15 Thread Richard . Cotton
> I'm trying to estimate a tobit model with survrec function. I use > the following code : > reg<-survreg(Surv(crs_prod,crs_prod<=1)~SOLVA+log(AF088) > +HHI+ACTIONNA,data=dat,dist="gaussian") > > I get this error message with R 2.7.2 > Error in survreg(Surv(crs_prod, crs_prod <= 1) ~ SOLVA + l

[R] problem with Surv

2008-12-15 Thread justin bem
Dear all, I'm trying to estimate a tobit model with survrec function. I use the following code : reg<-survreg(Surv(crs_prod,crs_prod<=1)~SOLVA+log(AF088)+HHI+ACTIONNA,data=dat,dist="gaussian") I get this error message with R 2.7.2 Error in survreg(Surv(crs_prod, crs_prod <= 1) ~ SOLVA + log(A