powered by
Calculates the empirical probability mass function for a variable with associated weights.
emppmf(y, weight)
Numerical variable
Associated weights of the variable of interest, default weight is rep(1,length(y))
vals: the distinct values of y
epmf: empirical probability mass function corresponding to each y in vals
# NOT RUN { emppmf(seq(1:10)) emppmf(htsrs$height, rep(2000/200,200)) # }
Run the code above in your browser using DataLab