Learn R Programming

MUVR2 (version 0.1.0)

mergeModels: Merge two MUVR class objects

Description

Merge two MUVR class objects that use regression for PLS or RF methods. The resultant MUVR class object has the same indata except that nRep is different.

Usage

mergeModels(MV1, MV2)

Value

A merged MURV class object

Arguments

MV1

a MUVR class Object

MV2

a MUVR class Object

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)
mergedModel<-mergeModels(regrModel,regrModel)
# }

Run the code above in your browser using DataLab