Learn R Programming

spatsurv (version 2.0)

MCE: MCE function

Description

A function to compute Monte Carlo expectations from an object inheriting class mcmcspatsurv

Usage

MCE(object, fun)

Value

the Monte Carlo mean of the function over the posterior.

Arguments

object

an object inheriting class mcmcspatsurv

fun

a function with arguments beta, omega, eta and Y

See Also

print.mcmcspatsurv, quantile.mcmcspatsurv, summary.mcmcspatsurv, vcov.mcmcspatsurv, frailtylag1, spatialpars, hazardpars, fixedpars, randompars, baselinehazard, predict.mcmcspatsurv, priorposterior, posteriorcov, hazardexceedance