sample_to_quantile: Change Data from a Sample Based Format to a Quantile Format

View source: R/utils_data_handling.R

sample_to_quantileR Documentation

Change Data from a Sample Based Format to a Quantile Format

Description

Transform data from a format that is based on predictive samples to a format based on plain quantiles.

Usage

sample_to_quantile(data, quantiles = c(0.05, 0.25, 0.5, 0.75, 0.95), type = 7)

Arguments

data

a data.frame with samples

quantiles

a numeric vector of quantiles to extract

type

type argument passed down to the quantile function. For more information, see quantile()

Value

a data.frame in a long interval range format

Examples

sample_to_quantile(example_integer)

scoringutils documentation built on Feb. 16, 2023, 7:30 p.m.