expectation.lgcpPredictSpatialOnlyPlusParameters: expectation.lgcpPredictSpatialOnlyPlusParameters function

View source: R/lgcpMethods.R

expectation.lgcpPredictSpatialOnlyPlusParametersR Documentation

expectation.lgcpPredictSpatialOnlyPlusParameters function

Description

This function requires data to have been dumped to disk: see ?dump2dir and ?setoutput. This function computes the Monte Carlo Average of a function where data from a run of lgcpPredict has been dumped to disk.

Usage

"expectation(obj,fun,maxit=NULL,...)"

Arguments

obj

an object of class lgcpPredictSpatialOnlyPlusParameters

fun

a function with arguments 'Y', 'beta', 'eta', 'Z' and 'otherargs'. See vignette("Bayesian_lgcp") for an example

maxit

Not used in ordinary circumstances. Defines subset of samples over which to compute expectation. Expectation is computed using information from iterations 1:maxit, where 1 is the first non-burn in iteration dumped to disk.

...

additional arguments

Value

the expectated value of that function


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