cpo: Conditional predictive ordinate function

View source: R/helper_functions.R View source: R/cpo.R

cpoR Documentation

Conditional predictive ordinate function

Description

This function computes conditional predictive ordinates for each data point.

Usage

cpo(object, ...)

cpo(object, ...)

Arguments

object

A fit obtained through one of the NRMI functions

...

Details

For internal use.

Value

A vector of Conditional Predictive Ordinates (CPOs)

Examples


## The function is currently defined as
function(obj) {
  fx <- obj$fx
  cpo <- 1 / apply(1 / fx, 1, mean)
  return(cpo)
}

BNPdensity documentation built on April 1, 2023, 12:10 a.m.