numCases: numCases function

View source: R/lgcpStructures.R

numCasesR Documentation

numCases function

Description

A function used in conjunction with the function "expectation" to compute the expected number of cases in each computational grid cell. Currently only implemented for spatial processes (lgcpPredictSpatialPlusPars and lgcpPredictAggregateSpatialPlusPars).

Usage

numCases(Y, beta, eta, Z, otherargs)

Arguments

Y

the latent field

beta

the main effects

eta

the parameters of the latent field

Z

the design matrix

otherargs

other arguments to the function (see vignette "Bayesian_lgcp" for an explanation)

Value

the number of cases in each cell

See Also

expectation, lgcpPredictSpatialPlusPars, lgcpPredictAggregateSpatialPlusPars

Examples

## Not run: ex <- expectation(lg,numCases)[[1]] # lg is output from spatial LGCP MCMC

lgcp documentation built on Oct. 3, 2023, 5:08 p.m.