View source: R/binomdm_sandbox.R View source: R/binomdm.R
binomdm | R Documentation |
DataMaker for data following the binomial distribution
binomdm(k, n, groupnames, size, prob)
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 |
a list of the input parameters and simulated data
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.