Learn R Programming

fitdistcp (version 0.2.3)

norm_p12_waic: Waic

Description

Waic

Usage

norm_p12_waic(
  waicscores,
  x,
  t1,
  t2,
  v1hat,
  v2hat,
  v3hat,
  v4hat,
  lddi,
  lddd,
  lambdad
)

Value

Two numeric values.

Arguments

waicscores

logical that indicates whether to return estimates for the waic1 and waic2 scores (longer runtime)

x

a vector of training data values

t1

a vector of predictors for the mean

t2

a vector of predictors for the sd

v1hat

first parameter

v2hat

second parameter

v3hat

third parameter

v4hat

fourth parameter

lddi

inverse observed information matrix

lddd

third derivative of log-likelihood

lambdad

derivative of the log prior