repYpost: Generate Replicated Data with Posterior Samples of Latent...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/checkingBMC.R

Description

This function generates replicated data sets based on posterior samples of latent variables.

Usage

1
repYpost(res.m, L, Y.family="Poisson")

Arguments

res.m

a list with elements containing the posterior samples of latent variables and parameters for observed locations

L

a vector of length n; it indicates the time duration during which the Poisson counts are accumulated, or the total number of trials for Binomial response

Y.family

take the value of "Poisson" or "Binomial" which indicates Poisson or Binomial distribution for response variables

Value

A matrix of replicated data sets.

Author(s)

Liang Jing ljing918@gmail.com

See Also

repYeb

Examples

1
2
3
## Not run: 
Yrep.post <- repYpost(res.m, L) 
## End(Not run)

geoCount documentation built on May 2, 2019, 5:46 p.m.

Related to repYpost in geoCount...