predMV: Predict outcomes Predict MV object using a MUVR class object...

View source: R/predMV.R

predMVR Documentation

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")

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'.

Value

The predicted result based on the MUVR model and the newdata

Examples


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)


MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.