A function used in conjunction with the function "expectation" to compute the main covariate effects, lambda(s) exp[Z(s)beta] in each computational grid cell. Currently only implemented for spatial processes (lgcpPredictSpatialPlusPars and lgcpPredictAggregateSpatialPlusPars).
covEffects(Y, beta, eta, Z, otherargs)
the latent field
the main effects
the parameters of the latent field
the design matrix
other arguments to the function (see vignette "Bayesian_lgcp" for an explanation)
the main effects
expectation, lgcpPredictSpatialPlusPars, lgcpPredictAggregateSpatialPlusPars
# NOT RUN {
ex <- expectation(lg,covEffects)[[1]] # lg is output from spatial LGCP MCMC
# }
Run the code above in your browser using DataLab