cassay | R Documentation |
Simulates a clinical Assay with 2 groups (control and treatment) before and after intervention.
cassay(n, mean = 0, sigma = 1, coefvar = NULL, d.cohen = NULL, dec = 2)
n |
size of samples. |
mean |
sample mean. Same for both groups before intervention (Pre-test). |
sigma |
sample standard error. |
coefvar |
sample coefficient of variation. |
d.cohen |
size effect (d-Cohen). If not given, randomly generated. |
dec |
number of decimals for observations. |
List containing the following components:
Data
: a data frame containing the samples created (Columns: Group, PreTest & PostTest).
Model
: linear regression model.
cassay(c(10,12), mean = 115, sigma = 7.5, d.cohen= 1.5) cassay(24, mean = 100, sigma = 5.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.