Learn R Programming

baseline (version 1.3-5)

optimWizard: Visual tool for setting up optimization

Description

Set up optimization through a graphical user interface. Optionally collecting values directly from 'baselineGUI'. Retrieve optimisation parameters and results with getOptim and getOptimRes, respectively.

Usage

optimWizard(X, y, postproc, predictionTest, cvsegments)
getOptim()
getOptimRes()

Arguments

X

Matrix with spectra in rows

y

Response vector or matrix in analysis

postproc

Custum function for post processing of spectra (optional)

predictionTest

Custom prediction object (optional)

cvsegments

Cross-validation segments (optional)

Author

Kristian Hovde Liland and Bjørn-Helge Mevik

Examples

Run this code
if (FALSE) {
# Computationally intensive
data(milk)
X <- milk$spectra[,-1]
y <- milk$spectra[,1]
optimWizard(X,y)

# Retrieve optimisation
myResults <- getOptimRes()

# After optimisation is complete
plotOptim(myResults)
}

Run the code above in your browser using DataLab