Learn R Programming

glmBfp (version 0.0-60)

evalZdensity: 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

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” !!!)