binomdm: DataMaker for data following the binomial distribution

View source: R/binomdm_sandbox.R View source: R/binomdm.R

binomdmR Documentation

DataMaker for data following the binomial distribution

Description

DataMaker for data following the binomial distribution

Usage

binomdm(k, n, groupnames, size, prob)

Arguments

k

number of groups that you have tested

n

sample size for each of the groups

groupnames

vector of names for the groups that you tested; make sure they are in order

size

the number of successes per group

prob

probability of success for each group

plot

TRUE or FALSE, to generate jitterplot

Value

a list of the input parameters and simulated data

Examples

binomdm(k = 3 , groupnames = c("control", "treatment1", "treatment2")
, n = c(40, 55, 55), size = c(5, 20, 20), prob = c(0.2, 0.2, 0.2))



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