Learn R Programming

mistr (version 0.0.6)

jumps: Probability mass points

Description

Function returns a vector of points where a mass of probability is present. These points are then used in plot and plotgg calls.

Usage

jumps(O, interval)

# S3 method for discrdist jumps(O, interval)

# S3 method for trans_discrdist jumps(O, interval)

# S3 method for contdist jumps(O, interval)

# S3 method for trans_contdist jumps(O, interval)

# S3 method for mixdist jumps(O, interval)

# S3 method for trans_mixdist jumps(O, interval)

# S3 method for compdist jumps(O, interval)

# S3 method for trans_compdist jumps(O, interval)

Value

Vector of values.

Arguments

O

distribution object.

interval

interval in which the support of discrete elements should be found.

Examples

Run this code
B <- binomdist(12, 0.4)
P <- poisdist(2)

I <- c(-7, 16.8)
jumps(B, I)
jumps(P, I)

Run the code above in your browser using DataLab