fig7_2

PURPOSE ^

Local Regression and Likelihood, Figure 7.2.

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Local Regression and Likelihood, Figure 7.2.

 Conditional Hazard Rate Estimation.
 When hazard rate estimation is performed with multiple x variables,
 the result is an estimate of the conditional hazard rate for the
 first variable, given the levels of the remaining variables.

 The surface plot looks more dramatic than the contour plot in the book!

 Author: Catherine Loader

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Local Regression and Likelihood, Figure 7.2.
0002 %
0003 % Conditional Hazard Rate Estimation.
0004 % When hazard rate estimation is performed with multiple x variables,
0005 % the result is an estimate of the conditional hazard rate for the
0006 % first variable, given the levels of the remaining variables.
0007 %
0008 % The surface plot looks more dramatic than the contour plot in the book!
0009 %
0010 % Author: Catherine Loader
0011 
0012 load livmet;
0013 fit = locfit([t dm],'cens',1-z,'scale',0,'deg',1,'family','hazard','alpha',0.5,'xlim',[0 1;10000 20]);
0014 lfplot(fit);
0015 xlabel('Survival Time (Months)');
0016 ylabel('Diameter (c.m.)');
0017 zlabel('Hazard Rate');

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