search for: ruser4897

Displaying 1 result from an estimated 1 matches for "ruser4897".

2007 May 08
1
Fitting Random effect tobit model
...the left censored value in the attached data set). I am using following R codes (?survival? library and ?survreg? package) for fitting a random effect tobit model for the left censored longitudinal data: library(splines) library(survival) setwd('C:/data') data=read.table('C:/data/Ruser4897.csv', sep=",") names(data)=c("sub", "x", "y", "w") data[1:100,] x=data[,2] y=data[,3] w=data[,4] survreg(Surv(y, y>=0, type='left')~x, dist='gaussian', weight=w) The output is as follows: Call: survreg(form...