Description Usage Arguments Details Value
For a between-individual comparison, a t-test comparing the melatonin suppression level at a single lux is conducted on two subgroups (untreated and treated) comprising different sets of individuals.
1 2 3 4 5 6 7 | comparison_test_treatment_single(
is_between,
lux,
n,
population_treated_df,
is_treated_higher
)
|
is_between |
a Boolean indicating whether experiment is within or between type |
lux |
the lux value at which to conduct the comparison |
n |
number of individuals in sample |
population_treated_df |
a virtual population data frame with individual who have been treated and those who have been untreated (where treatment is indicated by a Boolean column named "treated") |
is_treated_higher |
Boolean indicating whether treated group has a higher response |
For a within-individual comparison, a paired t-test comparing the melatonin suppression level at a single lux level for a set of individuals before and after they are treated is conducted.
This function requires based an (ideally large) simulated population of individual dose-response data.
a binary value indicating test success (if=1) or failure (if=0) to detect difference of correct sign
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.