Learn R Programming

staTools (version 0.1.0)

pmf: Probability Mass Function

Description

Empirical Probability Mass Function.

Usage

pmf(x)

Arguments

x
A vector of observations.

Examples

Run this code
x = rdispl(n = 1e4, xmin = 10, alpha = 2.5, xmax = 1e5)
obs = pmf(x)$x
probs = pmf(x)$y

Run the code above in your browser using DataLab