Returns the summary (min, max, IQR, median, mean) of the PMF specified by pmf
.
Examples
library(bayesRecon)
# Let's build the pmf of a Binomial distribution with parameters n and p
n <- 10
p <- 0.6
pmf_binomial <- apply(matrix(seq(0,10)),MARGIN=1,FUN=function(x) dbinom(x,size=n,prob=p))
# Print the summary of this distribution
PMF.summary(pmf=pmf_binomial)
#> Min. 1st Qu. Median Mean 3rd Qu. Max
#> 1 0 5 6 6 7 10