Draw pseudo-observations from predictive distribution.
pred contains draws from the component posterior (prior)
distributions, then the output is draws from the posterior (prior)
predictive distribution. If
pred is not specified, then
whether output draws are from prior or posterior predictive distribution
depends on whether
fit is created using the
prior_only=TRUE or not.
draw_pred(fit, pred = NULL)
An object of class lgpfit that has been created
An object of class Prediction, containing
draws of each model component. If
NULL, this is
An array with shape \(S x P\), where \(S\) is the number of
pred contains and \(P\) is the length of each
Each row \(s = 1, \ldots, S\) of the output is one vector drawn from the
predictive distribution, given parameter draw \(s\).
Other main functions: