CalculateLOOCV: Calculate Leave-One-Out Cross Validation

Description Usage Arguments Value

View source: R/OptimalSmoothFunctions.R

Description

Returns the value of the leave-one-out cross validation score for a given data set and smoothing parameter when a P-Spline fit is used.

Usage

1
CalculateLOOCV(x, y, lambda)

Arguments

x

Vector of data points.

y

Vector of observations

lambda

Smoothing parameter.

Value

Single numeric value representing the mean sqaure CV error.


nclJoshCowley/PSplinesR documentation built on Nov. 19, 2019, 10:29 a.m.