Skip to contents

Compute an the quantile of an observation within a vector of samples.

Usage

sample_quantile(samples, true_value)

Arguments

samples

A collection of draws from a probability distribution.

true_value

The underlying true value that is being compared to.

Value

The quantile.