Learn R Programming

PVAClone (version 0.1-7)

generateLatent: Generate latent variable

Description

Generate latent variable of a hierarchical PVA model.

Usage

generateLatent(x, ...)

Value

A matrix with n.iter * n.chains rows and as many columns as the length of the time series.

Arguments

x

A fitted PVA model object.

...

Arguments passed to jags.fit, such as n.iter, n.chains.

Author

Khurram Nadeem and Peter Solymos

Details

It uses MLE from a fitted PVA model to generate values for the latent variables.

References

Ponciano, J. M. et al. 2009. Hierarchical models in ecology: confidence intervals, hypothesis testing, and model selection using data cloning. Ecology 90, 356--362.

See Also

pva

Examples

Run this code
if (FALSE) {
data(paurelia)
m <- pva(paurelia, gompertz("normal"), 5)
p <- generateLatent(m, n.chains=1, n.iter=1000)
summary(p)
}

Run the code above in your browser using DataLab