getLambdaMin: getLambdaMin

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/quantsmooth.R

Description

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

Usage

1
  getLambdaMin(intensities,lambdas,...)

Arguments

intensities

numeric vector

lambdas

numeric vector; see quantsmooth

...

extra parameters for quantsmooth.cv; currently only ridge.kappa

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.

Value

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

Author(s)

Jan Oosting

See Also

quantsmooth.cv

Examples

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

quantsmooth documentation built on Nov. 8, 2020, 8:27 p.m.