predict method for class eco.## S3 method for class 'eco':
predict(object, newdraw = NULL, subset = NULL, verbose = FALSE, ...)eco or ecoNP.mu and Sigma, respectively. The default is the
mu and Sigma in the output object from
eco. If specified, the posterior draws of parameters for
those rows are used for posterior prediction. TTRUE, 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.predict.eco yields a matrix of class predict.eco
containing the Monte Carlo sample from the posterior predictive
distribution of inner cells of ecological
tables. summary.predict.eco will summarize the output, and
print.summary.predict.eco will print the summary.eco or ecoNP output
(or other sample if
newdraw is specified). Given each Monte Carlo sample of the
parameters, we sample the vector-valued latent variable from the
appropriate multivariate Normal distribution. Then, we apply the
inverse logit transformation to obtain the predictive values of
proportions, $W$. The computation may be slow (especially for the
nonparametric model) if a large Monte Carlo sample of the model
parameters is used. In either case, setting verbose = TRUE may
be helpful in monitoring the progress of the code.eco, ecoNP, summary.eco,
summary.ecoNP