generateLatent | R Documentation |
Generate latent variable of a hierarchical PVA model.
generateLatent(x, ...)
x |
A fitted PVA model object. |
... |
Arguments passed to |
It uses MLE from a fitted PVA model to generate values for the latent variables.
A matrix with n.iter * n.chains
rows and as
many columns as the length of the time series.
Khurram Nadeem and Peter Solymos
Ponciano, J. M. et al. 2009. Hierarchical models in ecology: confidence intervals, hypothesis testing, and model selection using data cloning. Ecology 90, 356–362.
pva
## Not run:
data(paurelia)
m <- pva(paurelia, gompertz("normal"), 5)
p <- generateLatent(m, n.chains=1, n.iter=1000)
summary(p)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.