proportion_below: Proportion of observations below conditional quantile vector

View source: R/accuracy_metrics.R

proportion_belowR Documentation

Proportion of observations below conditional quantile vector

Description

Proportion of observations below conditional quantile vector

Usage

proportion_below(y, Q_hat, na.rm = FALSE)

Arguments

y

Vector of observations.

Q_hat

Vector of predicted quantiles.

na.rm

A logical value indicating whether NA values should be stripped before the computation proceeds.

Value

The proportion of observation below the predictions.

Examples

proportion_below(c(2.3, 4.2, 1.8), c(2.9, 5.6, 1.7))

EQRN documentation built on April 4, 2025, 12:45 a.m.