Learn R Programming

fitdistcp (version 0.1.1)

gev_p123_waic: Waic

Description

Waic

Usage

gev_p123_waic(
  waicscores,
  x,
  t1,
  t2,
  t3,
  v1h,
  d1,
  v2h,
  d2,
  v3h,
  d3,
  v4h,
  d4,
  v5h,
  d5,
  v6h,
  d6,
  lddi,
  lddd,
  lambdad,
  aderivs
)

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

t3

a vector of predictors for the shape

v1h

first parameter

d1

the delta used in the numerical derivatives with respect to the parameter

v2h

second parameter

d2

the delta used in the numerical derivatives with respect to the parameter

v3h

third parameter

d3

the delta used in the numerical derivatives with respect to the parameter

v4h

fourth parameter

d4

the delta used in the numerical derivatives with respect to the parameter

v5h

fifth parameter

d5

the delta used in the numerical derivatives with respect to the parameter

v6h

sixth parameter

d6

the delta used in the numerical derivatives with respect to the parameter

lddi

inverse observed information matrix

lddd

third derivative of log-likelihood

lambdad

derivative of the log prior

aderivs

logical for whether to use analytic derivatives (instead of numerical)