poisdm: Poisson DataMaker: simulates groups of Poisson-distributed...

View source: R/poisdm.R

poisdmR Documentation

Poisson DataMaker: simulates groups of Poisson-distributed count data.

Description

Poisson DataMaker: simulates groups of Poisson-distributed count data.

Usage

poisdm(n, lambda, groupnames, plot)

Arguments

n

sample size

lambda

group mean

groupnames

names of the groups

plot

TRUE or FALSE; generate histogram and jitterplot of output

Value

a data frame with input values; if plot == T, also a histogram, and a jitterplot

Examples

poisdm(c(40, 50), c(10, 12), c("group1", "group2"), TRUE)

TJMurphy/mcpwr documentation built on May 3, 2022, 4:41 a.m.