compute_cdf: Empirical CDF of the Data

View source: R/helpers.R

compute_cdfR Documentation

Empirical CDF of the Data

Description

Computes the empirical CDF of the data.

Usage

compute_cdf(Y, grid, w = NULL)

Arguments

Y

(matrix): n x 1 matrix of observed data.

grid

(matrix): Grid of values to compute the CDF at.

w

(vector, optional): n-vector of sample weights.

Value

(list): Empirical CDF and its standard deviation at the specified grid points.

Examples


Y <- c(1, 2, 3, 4, 5)

grid <- seq(0, 6, by = 0.5)

compute_cdf(Y, grid)


ipd documentation built on April 4, 2025, 4:41 a.m.