generateLatent: Generate latent variable

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Generate latent variable of a hierarchical PVA model.

Usage

1

Arguments

x

A fitted PVA model object.

...

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

Details

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

Value

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

Author(s)

Khurram Nadeem and Peter Solymos

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

1
2
3
4
5
6
7
## Not run: 
data(paurelia)
m <- pva(paurelia, gompertz("normal"), 5)
p <- generateLatent(m, n.chains=1, n.iter=1000)
summary(p)

## End(Not run)

PVAClone documentation built on May 2, 2019, 5:49 a.m.