search for: datawomen

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

Did you mean: data_open
2008 Dec 02
1
Left-truncated regression
...tions (one for censoring and one for truncation). I know how to make the linear regression for the left-censored variable (hours) and how to plot the regression line into the (x,y) plot (packages AER, Zeileis, Survival, ...): tfit<-survreg(Surv(Hours,Hours>0, type='left')~Yrs_Ed,data=DataWomen,dist='gaussian') z<-predict(tfit,type="response") plot(Yrs_Ed,Hours) abline(tfit) My aim is to compare the effects of truncation and censoring graphically by plotting the two regression lines into one plot with both datasets (censored and truncated). I just can't figure ou...