Description Usage Arguments Details Value Examples
Perform estimation or prediction under the envelope model.
1 | predict.env(m, Xnew)
|
m |
A list containing estimators and other statistics inherited from env. |
Xnew |
The value of X with which to estimate or predict Y. A p dimensional vector. |
This function evaluates the 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.
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. |
1 2 3 4 5 6 7 8 9 10 11 12 | data(wheatprotein)
X <- wheatprotein[, 8]
Y <- wheatprotein[, 1:6]
u <- u.env(X, Y)
u
m <- env(X, Y, 1)
m
X <- as.matrix(X)
pred.res <- predict.env(m, X[2, ])
pred.res
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.