Description Usage Arguments Value Examples
genpoissondata()
function mainly used internally by
poissontrialsimulator()
function to generate data for a two-arm
clinical trial, experimental and control groups. Can be used to generate
random trial data.
1 | genpoissondata(sample_size, mu1, mean_ratio)
|
sample_size |
Number of subjects per arm. |
mu1 |
lambda parameter used in call to |
mean_ratio |
Desired Mean Ratio between experimental and control groups. |
genpoissondata()
returns a data frame with columns: 'id', 'treatment',
and 'y'.
1 2 | samplehistdata <- genpoissondata(sample_size=60, mu1=1, mean_ratio=1.0)
samplehistdata
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.