powered by
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)
List containing the following components:
Data: a data frame containing the samples created (Columns: Group, PreTest & PostTest).
Data
Model: linear regression model.
Model
size of samples.
sample mean. Same for both groups before intervention (Pre-test).
sample standard error.
sample coefficient of variation.
size effect (d-Cohen). If not given, randomly generated.
number of decimals for observations.
cassay(c(10,12), mean = 115, sigma = 7.5, d.cohen= 1.5) cassay(24, mean = 100, sigma = 5.1)
Run the code above in your browser using DataLab