CGGP_internal_neglogpost: Calculate negative log posterior

Description Usage Arguments Value Examples

View source: R/CGGP_neglogpost.R

Description

Calculate negative log posterior

Usage

1
2
3
4
5
6
7
8
9
CGGP_internal_neglogpost(
  theta,
  CGGP,
  y,
  ...,
  ys = NULL,
  Xs = NULL,
  HandlingSuppData = "Correct"
)

Arguments

theta

Correlation parameters

CGGP

CGGP object

y

Measured values of CGGP$design

...

Forces you to name remaining arguments

ys

Supplementary output data

Xs

Supplementary input data

HandlingSuppData

How should supplementary data be handled?

  • Correct: full likelihood with grid and supplemental data

  • Only: only use supplemental data

  • Ignore: ignore supplemental data

Value

Likelihood

Examples

1
2
3
4
cg <- CGGPcreate(d=3, batchsize=20)
Y <- apply(cg$design, 1, function(x){x[1]+x[2]^2})
cg <- CGGPfit(cg, Y)
CGGP_internal_neglogpost(cg$thetaMAP, CGGP=cg, y=cg$y)

CGGP documentation built on May 8, 2021, 5:06 p.m.