powered by
Computes the empirical CDF of the data.
compute_cdf(Y, grid, w = NULL)
(list): Empirical CDF and its standard deviation at the specified grid points.
(matrix): n x 1 matrix of observed data.
(matrix): Grid of values to compute the CDF at.
(vector, optional): n-vector of sample weights.
Y <- c(1, 2, 3, 4, 5) grid <- seq(0, 6, by = 0.5) compute_cdf(Y, grid)
Run the code above in your browser using DataLab