View source: R/OptimalSmoothFunctions.R
Finds the value from a given range that minimised the mean sqaure cross validation error.
1 | MinimiseLOOCV(x, y, Lambdas, toPlot = T, ...)
|
x |
Vector of data points. |
y |
Vector of observations |
Lambdas |
Vector of smoothing paramaeters to test. |
toPlot |
Logical. Should the plot of CV error against
|
... |
Optional graphical parameters. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.