Learn R Programming

quantsmooth (version 1.38.0)

quantsmooth.cv: quantsmooth.cv

Description

Cross validation of smoothing parameters

Usage

quantsmooth.cv(intensities,smooth.lambda=2, ridge.kappa=0)

Arguments

intensities
numeric vector
smooth.lambda
numeric; see quantsmooth
ridge.kappa
fudge parameter; see quantsmooth

Value

This function returns the sum of squared differences or NA if the fitting function gave an error

Details

Cross validation is performed by calculating the fit from the even indices on the odd indices and vice versa.

See Also

getLambdaMin

Examples

Run this code
	data(chr14)
	# A low value is indicative of a better fit to the data
	quantsmooth.cv(bac.cn[,1],1)
	quantsmooth.cv(bac.cn[,1],2.8)

Run the code above in your browser using DataLab