buildRIVPACS | R Documentation |
This function builds a RIVPACS model using either linear discriminant analysis, random forests, or a multinomial log linear model. The get* functions can be used to extract model components.
buildRIVPACS(formula, data, type = c("lda", "multinom", "rf"), ...) ## S3 method for class 'rivpacs' getSamples(x, ...) ## S3 method for class 'rivpacs' getSites(x, ...) getCalibrationData(x, ...) getGroupMeans(x, ...) getGroupInvCov(x, ...) getCalibrationGroups(x, ...) getCalibrationVars(x, ...) getFormula(x, ...) getModel(x, ...) ## S3 method for class 'rivpacs' getCalibrationData(mod) ## S3 method for class 'rivpacs' getGroupMeans(mod) ## S3 method for class 'rivpacs' getGroupInvCov(mod) ## S3 method for class 'rivpacs' getCalibrationGroups(mod) ## S3 method for class 'rivpacs' getCalibrationVars(mod) ## S3 method for class 'rivpacs' getFormula(mod) ## S3 method for class 'rivpacs' getModel(mod)
formula |
a formula with the groups on the left and the predictors on the right |
data |
the data frame of site/sample data |
type |
the type of model to build |
... |
additional arguments to be passed to the modeling functions |
a RIVPACS model object (a function)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.