loessFitKfoldCV: loess with n - fold CV function

Description Usage Arguments Value

Description

loess with n - fold CV function

Usage

1
2
loessFitKfoldCV(x, y, feature, smoothSpan = NULL, folds = 7,
  plotFile = NULL, colours = NULL)

Arguments

x

predictor values

y

response values

feature

LC-MS feature.

smoothSpan

fixed smoothing span. If supplied a this fixed smoothing span parameter will override the cross validated feature-by-feature smoothing span optimization.

folds

numeric (default=7, i.e. 7-fold cross validation).

plotFile

character full path to plot file png (optional). If supplied a plot file will be generated at this location showing the before and after loess smoothing result.

colours

vector of colours for datapoints (i.e. red for QCs and black for samples). (optional if plot file supplied then this argument is required). Argument is passed to plot col.

Value

vector smoothed feature and smoothing span parameter selected concatenated to end.


WMBEdmands/MetMSLine documentation built on May 9, 2019, 10:03 p.m.