Learn R Programming

mistr (version 0.0.2)

geomdist: Creates an Object Representing Geometric Distribution

Description

The function creates an object which represents the geometric distribution.

Usage

geomdist(prob = 0.5)

Arguments

prob

probability parameter, default: 0.5.

Value

Object of class geomdist.

Details

See Geometric.

See Also

Geometric

Examples

Run this code
# NOT RUN {
G <- geomdist(0.5)
d(G, c(2, 3, 4, NA))
r(G, 5)
# }

Run the code above in your browser using DataLab