expectation.lgcpPredictSpatialOnlyPlusParameters: 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.