Learn R Programming

BNPdensity (version 2023.3.8)

cpo: Conditional predictive ordinate function

Description

This function computes conditional predictive ordinates for each data point.

Usage

cpo(object, ...)

cpo(object, ...)

Value

A vector of Conditional Predictive Ordinates (CPOs)

Arguments

object

A fit obtained through one of the NRMI functions

...

Details

For internal use.

Examples

Run this code

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

Run the code above in your browser using DataLab