nlsGaussianSumCV: Choose the best number of gaussian components automatically...

Description Usage Arguments Value

View source: R/nlsGaussianSum.R

Description

Choose the best number of gaussian components automatically using K-fold cross validation. The best performing model is refitted and returned.

Usage

1
2
nlsGaussianSumCV(y, x = seq_along(y), K = 3, n.range = 1:3,
  quiet = TRUE, ...)

Arguments

y

The intensity values on which to fit.

x

The associated x values. Optional.

K

The number of cross validation folds to perform. Larger numbers yield better error estimates.

n.range

A numeric vector of n values that should be evaluated.

Value

The fitted nls model that performed best.


hafenr/MACode documentation built on May 17, 2019, 2:24 p.m.