Statistics 5601 (Geyer, Fall 2003) Examples: Smoothers

Contents

General Instructions

To do each example, just click the "Submit" button. You do not have to type in any R instructions or specify a dataset. That's already done for you.

Notes

The handout for smoothing is available in Adobe PDF format. Paper copies were handed out in class. No need to print out another if you got one in class.

Running Mean Smoother

We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.

External Data Entry

Enter a dataset URL :

Comments

Try with different bandwidth values.

General Kernel Smoother

We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.

External Data Entry

Enter a dataset URL :

Comments

Try with different bandwidth values.

Local Polynomial Smoother

We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.

External Data Entry

Enter a dataset URL :

Comments

Try with different bandwidth values.

The function locpoly is in the R package KernSmooth so you must do library(KernSmooth) before using it.

Smoothing Spline

We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.

External Data Entry

Enter a dataset URL :

Comments

Try with different bandwidth values.

One can specify the smoothing parameter lambda (λ) by using the spar argument instead of the bandwidth argument.