Learn R Programming

quantsmooth (version 1.38.0)

getLambdaMin: getLambdaMin

Description

Test a set of smoothing parameters to find best fit to data

Usage

getLambdaMin(intensities,lambdas,...)

Arguments

intensities
numeric vector
lambdas
numeric vector; see quantsmooth
...
extra parameters for quantsmooth.cv; currently only ridge.kappa

Value

This function returns the lambda value that has the lowest cross validation value on this dataset

Details

Cross validation is performed using a set of lambda values in order to find the lambda value that shows the best fit to the data.

See Also

quantsmooth.cv

Examples

Run this code
  data(chr14)
  lambdas<-2^seq(from=-2,to=5,by=0.25)
  getLambdaMin(bac.cn[,1],lambdas)

Run the code above in your browser using DataLab