Computes the regularized predicted response y^δlb,M(x)
and the mean squared error sδlb,M2(x) for a new set of inputs using the fitted GP model.
The value of M determines the number of iterations (or terms) in approximating R−1≈Rδlb,M−1. The iterative use of the nugget δlb, as outlined in Ranjan et al. (2011), is used in calculating y^δlb,M(x) and sδlb,M2(x), where c("Rdelta,M−1=sumt=1M\n", "deltat−1(R+deltaI)−t").
## S3 method for class 'GP'predict(object, xnew = object$X, M =1,...)## S3 method for class 'GP'fitted(object,...)
Arguments
object: a class GP object estimated by GP_fit
xnew: the (n_new x d) design matrix of test points where model predictions and MSEs are desired
M: the number of iterations. See 'Details'
...: for compatibility with generic method predict
Returns
Returns a list containing the predicted values (Y_hat), the mean squared errors of the predictions (MSE), and a matrix (complete_data) containing xnew, Y_hat, and MSE
Methods (by class)
predict(GP): The predict method returns a list of elements Y_hat (fitted values), Y (dependent variable), MSE (residuals), and completed_data (the matrix of independent variables, Y_hat, and MSE).
Functions
fitted(GP): The fitted method extracts the complete data.
Ranjan, P., Haynes, R., and Karsten, R. (2011). A Computationally Stable Approach to Gaussian Process Interpolation of Deterministic Computer Simulation Data, Technometrics, 53(4), 366 - 378.
See Also
GP_fit for estimating the parameters of the GP model;
plot for plotting the predicted and error surfaces.