visualize.pois: Visualize Poisson Distribution

Description Usage Arguments Author(s) See Also Examples

View source: R/visualize.pois.R

Description

Generates a plot of the Poisson distribution with user specified parameters.

Usage

1
2
visualize.pois(stat = 1, lambda = 3.5, section = "lower",
  strict = FALSE)

Arguments

stat

a statistic to obtain the probability from. When using the "bounded" condition, you must supply the parameter as stat = c(lower_bound, upper_bound). Otherwise, a simple stat = desired_point will suffice.

lambda

lambda value of the Poisson Distribution.

section

Select how you want the statistic(s) evaluated via section= either "lower","bounded", "upper", or"tails".

strict

Determines whether the probability will be generated as a strict (<, >) or equal to (<=, >=) inequality. strict= requires either values = 0 or =FALSE for equal to OR values =1 or =TRUE for strict. For bounded condition use: strict=c(0,1) or strict=c(FALSE,TRUE).

Author(s)

James Balamuta

See Also

visualize.it , dpois.

Examples

1
2
3
4
5
6
7
8
# Evaluates lower tail.
visualize.pois(stat = 1, lambda = 2, section = "lower", strict = FALSE) 

# Evaluates bounded region.
visualize.pois(stat = c(1,3), lambda = 3, section = "bounded", strict = c(0,1))

# Evaluates upper tail.
visualize.pois(stat = 1, lambda = 2, section = "upper", strict = 1)

visualize documentation built on May 19, 2017, 9:21 p.m.

Search within the visualize package
Search all R packages, documentation and source code