Description Usage Arguments Value Examples
View source: R/BernoulliCode.R
genlogisticdata()
function used mainly internally by
logistictrialsimulator()
function to generate data for a two-arm
clinical trial, experimental and control groups. Can be used to generate
random trial data.
1 | genbernoullidata(sample_size, prob1, odds_ratio)
|
sample_size |
Number of subjects per arm. |
prob1 |
prob parameter used in call to |
odds_ratio |
Desired Odds Ratio between experimental and control groups. |
genlogisticdata()
returns a data frame with columns: 'id', 'treatment',
and 'y'.
1 2 | samplehistdata <- genbernoullidata(sample_size=60, prob1=0.6, odds_ratio=0.6)
samplehistdata
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.