quantsmooth.cv {quantsmooth} | R Documentation |
Cross validation of smoothing parameters
quantsmooth.cv(intensities,smooth.lambda=2, ridge.kappa=0)
intensities |
numeric vector |
smooth.lambda |
numeric; see quantsmooth |
ridge.kappa |
fudge parameter; see quantsmooth |
Cross validation is performed by calculating the fit from the even indices on the odd indices and vice versa.
This function returns the sum of squared differences or NA
if the fitting function gave an error
Jan Oosting
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)