loess.wrapper: Compute a loess fit using cross validation
Description
Uses the crossval function from the boostrap package to compute
the optimal value of the tuning parameter in the loess function
and returns the corresponding loess fit.
Usage
loess.wrapper(x, y, span.vals = seq(0.25, 1, by = 0.05), folds = 5)
Arguments
span.vals
values of the tuning parameter to evaluate using
cross validation
folds
number of "folds" for the cross-validation procedure
Value
Returns a loess object.
References
Chambers, J. M. (1991) Statistical Models in S.
Examples
Run this code# NOT RUN {
## See examples for bisoreg ##
# }
Run the code above in your browser using DataLab