predict.rosa: Predictions from ROSA models

Description Usage Arguments Value

View source: R/rosa.methods.R

Description

Predictions from ROSA models

Usage

1
2
3
## S3 method for class 'rosa'
predict(object, newdata, ncomp = 1:object$ncomp, comps,
  type = c("response", "scores"), na.action = na.pass, ...)

Arguments

object

A rosa object.

newdata

Optional new data with the same types of predictor blocks as the ones used for fitting the object.

ncomp

An integer vector giving the number of components to use for prediction.

comps

An integer vector giving the exact components to use for predictions.

type

A character indicating if responses or scores should be predicted (default = "response", or "scores")

na.action

Function determining what to do with missing values in newdata.

...

Additional arguments. Currently not implemented.

Value

Returns predicted responses or scores depending on inputs.


khliland/rosa documentation built on Dec. 29, 2021, 12:25 a.m.