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.
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.
We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.
Try with different bandwidth
values.
We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.
Try with different bandwidth
values.
We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.
Try with different bandwidth
values.
The function locpoly
is in the R package KernSmooth
so you must do library(KernSmooth)
before using it.
We use for example data the cholostyramine data from Section 7.3 in Efron and Tibshirani.
Try with different bandwidth
values.
One can specify the smoothing parameter lambda (λ) by using
the spar
argument instead of the bandwidth
argument.