View source: R/pred.env.tcond.R
| pred.env.tcond | R Documentation | 
Perform estimation or prediction under the response envelope model, where the errors follow a multivariate t-distribution.
pred.env.tcond(m, Xnew)
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.  | 
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.
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.  | 
data(concrete)
X <- concrete[1:78, 1:7]  # The first 78 observations are training data
Y <- concrete[1:78, 8:10]
## Not run: u <- u.env.tcond(X, Y, 6)
## Not run: u
m <- env.tcond(X, Y, 2, 6)
m
X <- as.matrix(X)
pred.res <- pred.env.tcond(m, X[2, ])
pred.res
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.