Learn R Programming

MUVR2 (version 0.1.0)

predMV: Predict outcomes Predict MV object using a MUVR class object and a X testing set. At present, this function only supports predictions for PLS regression type problems.

Description

Predict outcomes Predict MV object using a MUVR class object and a X testing set. At present, this function only supports predictions for PLS regression type problems.

Usage

predMV(MUVRclassobject, newdata, model = "min")

Value

The predicted result based on the MUVR model and the newdata

Arguments

MUVRclassobject

An 'MUVR' class object

newdata

New data for which to predict outcomes

model

What type of model to plot ('min', 'mid' or 'max'). Defaults to 'mid'.

Examples

Run this code
# \donttest{
data("freelive2")
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
                   Y = YR2,
                   nRep = nRep,
                   nOuter = nOuter,
                   varRatio = varRatio,
                   method = "PLS",
                   modReturn=TRUE)
predMV(regrModel,XRVIP2)
# }

Run the code above in your browser using DataLab