Description Usage Arguments Value
View source: R/data_lei_wasserman.R
calculate true CDE conformal score and approximate mass non-conformal score under Lei & Wasserman 2014 perfect data fit.
1 | conformal_scores_lei_wasserman(x, y, grid = seq(-8, 8, length.out = 100))
|
x |
x value |
y |
observed y value |
grid |
good range of potential y values that take up most of mass of CDE, should also be equally spaced. |
data frame with
x
:
y
:
cde
: CDE of true y value
mass
: approximation of P(z|x and f(z|x) >= f(y|x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.