pred.senv: Estimation or prediction for senv

pred.senvR Documentation

Estimation or prediction for senv

Description

Perform estimation or prediction under the scaled response envelope model.

Usage

pred.senv(m, Xnew)

Arguments

m

A list containing estimators and other statistics inherited from scale.env.

Xnew

The value of X with which to estimate or predict Y. A p dimensional vector.

Details

This function evaluates the scaled envelope model at new value Xnew. It can perform estimation: find the fitted value when X = Xnew, or prediction: predict Y when X = Xnew. The covariance matrix and the standard errors are also provided.

Value

The output is a list that contains following components.

value

The fitted value or the predicted value evaluated at Xnew.

covMatrix.estm

The covariance matrix of the fitted value at Xnew.

SE.estm

The standard error of the fitted value at Xnew.

covMatrix.pred

The covariance matrix of the predicted value at Xnew.

SE.pred

The standard error of the predicted value at Xnew.

Examples

data(sales)
X <- sales[, 1:3]
Y <- sales[, 4:7]

m <- senv(X, Y, 2)

pred.res <- pred.senv(m, X[2, ])
pred.res


Renvlp documentation built on Oct. 11, 2023, 1:06 a.m.

Related to pred.senv in Renvlp...