Usage
## S3 method for class 'ecoNP':
predict(object, newdraw = NULL, subset = NULL, obs = NULL, verbose = FALSE, ...)
## S3 method for class 'ecoNPX':
predict(object, newdraw = NULL, subset = NULL, obs = NULL, cond = FALSE, verbose = FALSE, ...)
Arguments
object
An output object from ecoNP.
newdraw
An optional list containing two matrices (or three
dimensional arrays for the nonparametric model) of MCMC draws
of $\mu$ and $\Sigma$. Those elements should be named as
mu and Sigma, respectively. The default is the
subset
A scalar or numerical vector specifying the row
number(s) of mu and Sigma in the output object from
eco. If specified, the posterior draws of parameters for
those rows are used for posterior prediction. T
obs
An integer or vector of integers specifying the observation
number(s) whose posterior draws will be used for predictions. The
default is NULL where all the observations in the data set
are selected.
cond
logical. If TRUE, then the conditional prediction
will made for the parametric model with contextual effects. The
default is FALSE.
verbose
logical. If TRUE, helpful messages along with a
progress report on the Monte Carlo sampling from the posterior
predictive distributions are printed on the screen. The default is
FALSE.
...
further arguments passed to or from other methods.