compute_weighted_ecdf {rifreg} | R Documentation |
Weighted ECDF value
Description
Compute values of the ECDF for a vector dep_var
(i.e. the
empirical probability for each observation in dep_var
that a value
in dep_var
is smaller or equal).
Usage
compute_weighted_ecdf(dep_var, weights)
Arguments
dep_var |
dependent variable of a distributional function. Discrete or continuous numeric vector. |
weights |
numeric vector of non-negative observation weights, hence of same length as |
Value
the values of ECDF for a vector dep_var
.
Examples
dep_var <- c(1, 3, 9, 16, 3, 7, 4, 9)
weights <- c(2, 1, 3, 4, 4, 1, 6, 3)
value_of_ecdf <-
compute_weighted_ecdf(
dep_var = dep_var,
weights = weights
)
[Package rifreg version 0.1.0 Index]