du_ttest_sim: t-test simulation: Simulate rowwise t-tests

Description Usage Arguments Value Functions Examples

View source: R/simulations.R

Description

t-test simulation: Simulate rowwise t-tests

Usage

 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
)

Arguments

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)

Value

A data frame containing all information about the simulation experiment

Functions

Examples

1
sim_df <- du_ttest_sim(20000,0.95, 1.5)

nignatiadis/ihwPaper documentation built on Jan. 18, 2021, 3:13 p.m.