Learn R Programming

fitdistcp (version 0.1.1)

pareto_p1k2_waic: Waic

Description

Waic

Usage

pareto_p1k2_waic(
  waicscores,
  x,
  t,
  v1hat,
  d1,
  v2hat,
  d2,
  kscale,
  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

t

a vector or matrix of predictors

v1hat

first parameter

d1

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

v2hat

second parameter

d2

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

kscale

the known scale parameter

lddi

inverse observed information matrix

lddd

third derivative of log-likelihood

lambdad

derivative of the log prior