Learn R Programming

bisoreg (version 1.0)

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

x
predictor values
y
response values
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.

Details

None.

References

Chambers, J. M. (1991) Statistical Models in S.

See Also

loess

Examples

Run this code
## See examples for bisoreg ##

Run the code above in your browser using DataLab