Description Usage Arguments Details Value Note Author(s) References See Also Examples
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.
1 | loess.wrapper(x, y, span.vals = seq(0.25, 1, by = 0.05), folds = 5)
|
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 |
None.
Returns a loess
object.
None.
S. McKay Curtis
Chambers, J. M. (1991) Statistical Models in S.
1 | ## See examples for bisoreg ##
|
Loading required package: bootstrap
Loading required package: monreg
Loading required package: R2WinBUGS
Loading required package: coda
Loading required package: boot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.