predict.tripls: Tri-PLS Predictions

Description Usage Arguments Details Value Author(s) Examples

Description

Make predictions based on a Trilinear Partial Least Squares regression model.

Usage

1
predict.tripls(res.tripls, data, casenames = NULL)

Arguments

res.tripls

A "tripls" class regression object containing Tri-PLS regression estimates

data

An optional (n' x p x q) three-way data frame containing n' cases for which to calculate tri-PLS predictions

casenames

An optional n' x 1 character array containing the corresponding case names.

Details

This function implicitly adapts to the type of scaling used to construct the tri-PLS model, and rescales the predictions accordingly.

Value

The predicted responses as a length n' numeric, named if names have been provided.

Author(s)

Sven Serneels, BASF Corp.

Examples

1
2
3
4
5
data(data_3)
res.tripls <- tripls(data_3$X3,data_3$y3,2)
predict(res.tripls)
predict(res.tripls,data=data_3$X3)
predict(res.tripls,data=data_3$X3,casename=paste("C",18:34,sep=""))

SvenSerneels/tripls_r documentation built on May 4, 2019, 6:30 a.m.