fig7_3

PURPOSE ^

Local Regression and Likelihood, Figure 7.3.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 7.3.

 Censored local regression.

 Author: Catherine Loader

 NEEDS: Kaplan-Meier based estimate. Identify curves and cens/uncens. data

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Local Regression and Likelihood, Figure 7.3.
0002 %
0003 % Censored local regression.
0004 %
0005 % Author: Catherine Loader
0006 %
0007 % NEEDS: Kaplan-Meier based estimate. Identify curves and cens/uncens. data
0008 
0009 load heart;
0010 fit = locfit(age,log(0.5+surv));
0011 lfplot(fit);
0012 xlabel('Age at Transplant (years)');
0013 ylabel('0.5+Survival Time (Days)');
0014 
0015 fit = lf_censor(age,log(0.5+surv),cens);
0016 hold on;
0017 lfplot(fit,'nodata');
0018 hold off;

Generated on Tue 28-Mar-2006 14:37:41 by m2html © 2003