plotPred | R Documentation |
At present, this function only supports predictions for PLS regression type problems.
plotPred(Ytrue, Ypreds)
Ytrue |
True value of Y, should be a vector |
Ypreds |
Predicted value of Y can be a vector or data frame with the same number of rows |
A plot, plot the prediction
data("freelive2")
Ytrue<-YR2
Ypreds<-sampling_from_distribution(YR2)
plotPred(Ytrue,Ypreds)
Ytrue<-YR2
nRep <- 2
nOuter <- 4
varRatio <-0.6
regrModel <- MUVR2(X = XRVIP2,
Y = YR2,
nRep = nRep,
nOuter = nOuter,
varRatio = varRatio,
method = "PLS",
modReturn = TRUE)
Ypreds<-regrModel$yPred
plotPred(Ytrue,Ypreds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.