Evaluate the (negative log) unnormalized marginal z density in a given model.

Description

Based on the result list from glmBayesMfp, for the first model in the list, the marginal z density can be evaluated.

Usage

1
2
evalZdensity(config, object, zValues, conditional = FALSE, debug = FALSE,
  higherOrderCorrection = FALSE)

Arguments

config

the configuration of a single GlmBayesMfp model. The null model is not allowed. It is interpreted in the context of object.

object

the GlmBayesMfp object

zValues

the z values

conditional

return the approximate *conditional* density f(y | z)? (not default)

debug

print debugging information? (not default)

higherOrderCorrection

should a higher-order correction of the Laplace approximation be used? (not default)

Value

the negative log marginal unnormalized density values at the zValues. (Note the words “negative”, “log”, and “unnormalized” !!!)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.