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