Description Usage Arguments Value Functions Examples
t-test simulation: Simulate rowwise t-tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | du_ttest_sim(
m,
pi0,
effect_size,
n_samples = 10,
uninformative_filter = FALSE,
seed = NULL
)
du_ttest_sim_fun(
m,
pi0,
effect_size,
n_samples = 10,
uninformative_filter = FALSE
)
|
m |
Integer, total number of hypotheses |
pi0 |
Numeric, proportion of null hypotheses |
effect_size |
Numeric, the alternative hypotheses will be |
n_samples |
Integer, number of samples for t-test, i.e. the comparison will be n_samples/2 vs n_samples/2 |
uninformative_filter |
Boolean, if TRUE will generate uniformly distributed filter statistic Otherwise will use the pooled standard deviations |
seed |
Integer, Random seed to be used for simulation (default: NULL, i.e. RNG state will be used as is) |
A data frame containing all information about the simulation experiment
du_ttest_sim_fun
: Creates a closure function for a given seed
1 | sim_df <- du_ttest_sim(20000,0.95, 1.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.