View source: R/helper_functions.R View source: R/cpo.R
cpo | R Documentation |
This function computes conditional predictive ordinates for each data point.
cpo(object, ...)
cpo(object, ...)
object |
A fit obtained through one of the NRMI functions |
... |
For internal use.
A vector of Conditional Predictive Ordinates (CPOs)
## The function is currently defined as
function(obj) {
fx <- obj$fx
cpo <- 1 / apply(1 / fx, 1, mean)
return(cpo)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.