Learn R Programming

Renvlp (version 3.4.5)

pred.env.tcond: Estimation or prediction for env.tcond

Description

Perform estimation or prediction under the response envelope model, where the errors follow a multivariate t-distribution.

Usage

pred.env.tcond(m, Xnew)

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.

Arguments

m

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

Xnew

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

Details

This function evaluates the envelope model with t distributed errors 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.

Examples

Run this code
data(concrete)
X <- concrete[1:78, 1:7]  # The first 78 observations are training data
Y <- concrete[1:78, 8:10]
if (FALSE) u <- u.env.tcond(X, Y, 6)
if (FALSE) u

m <- env.tcond(X, Y, 2, 6)
m

X <- as.matrix(X)
pred.res <- pred.env.tcond(m, X[2, ])
pred.res

Run the code above in your browser using DataLab