optimWizard | R Documentation |
Set up optimization through a graphical user interface. Optionally collecting values directly from 'baselineGUI'.
Retrieve optimisation parameters and results with getOptim
and getOptimRes
, respectively.
optimWizard(X, y, postproc, predictionTest, cvsegments)
getOptim()
getOptimRes()
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) |
Kristian Hovde Liland and Bjørn-Helge Mevik
## Not run:
# 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)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.