cpo {BNPdensity} | R 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)
}
[Package BNPdensity version 2023.3.8 Index]