gp.model.adequacy {GPBayes}R Documentation

Model assessment based on Deviance information criterion (DIC), logarithmic pointwise predictive density (lppd), and logarithmic joint predictive density (ljpd).

Description

This function computes effective number of parameters (pD), deviance information criterion (DIC), logarithmic pointwise predictive density (lppd), and logarithmic joint predictive density (ljpd). For detailed introduction of these metrics, see Chapter 7 of Gelman et al. (2013).

The deviance function for a model with a vector of parameters \boldsymbol \theta is defined as

D(\boldsymbol \theta) = -2\log p(\mathbf{y} \mid \boldsymbol \theta),

where \mathbf{y}:=(y(\mathbf{x}_1), \ldots, y(\mathbf{x}_n))^\top is a vector of n observations.

Usage

gp.model.adequacy(
  obj,
  testing.input,
  testing.output,
  pointwise = TRUE,
  joint = TRUE
)

Arguments

obj

a gp object.

testing.input

a matrix of testing inputs

testing.output

a vector of testing outputs

pointwise

a logical value with default value TRUE. If it is TRUE, lppd is calculated.

joint

a logical value with default value TRUE. If it is TRUE, ljpd is calculated.

Value

a list containing pD, DIC, lppd, ljpd.

Author(s)

Pulong Ma mpulong@gmail.com

References

See Also

GPBayes-package, GaSP, gp,


[Package GPBayes version 0.1.0-6 Index]