conformal_pdf_breaks: calculate conformal scores and split into level groupings

Description Usage Arguments Details Value

View source: R/conformal_pdf_approach.R

Description

calculate conformal scores and split into level groupings

Usage

1
2
3
4
5
conformal_pdf_breaks(
  individual_df,
  split_conformal_info_vector,
  conformal_score = c("cde", "mass")
)

Arguments

individual_df

data.frame that contains information from a single (x) with the following columns:

  • yy: range of y value that conformal inference will explore

  • fit_density: fit density estimates for yy

split_conformal_info_vector

a vector of conformal / non-conformal scores from a calibration set

conformal_score

string to indicate if we will be doing use the CDE conformal score ("cde") or mass non-conformal score ("mass")

Details

For split_conformal_info_vector need to feed in acceptable conformal or non-conformal scores depending upon conformal_score string value.

In the output, the "cuts" are assoicated with y:\hat{f}(y|x) > λ_i

Value

individual_df with additional columns, specifically:


benjaminleroy/simulationBands documentation built on Dec. 19, 2021, 8:41 a.m.