Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/pkimes/benchmark-fdr
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkorthauer committed Oct 31, 2018
2 parents ea29ba3 + cbb68ac commit 7ae3eec
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 54 deletions.
24 changes: 13 additions & 11 deletions datasets/simulations/simulations-informative-cosine.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ output:
# Summary

In this set of simulations, we consider settings with both null and non-null
tests with an informative covariate. The covariate is sampled uniformly from
tests with an informative and uninformative covariate. The informative covariate is sampled uniformly from
the interval [0, 1], and the conditional probability of a test being non-null
is a smooth (cosine) function of the covariate. We include simulation results
is a smooth (cosine) function of the covariate. The uninformative covariate is simply
uninformly sampled independently from the interval [0, 1]. The uninformative covariate is included
as a baseline to compare the informative covariate against. We include simulation results
again with Gaussian, t-distributed, and Chi-Squared distributed test statistics.

# Workspace Setup
Expand Down Expand Up @@ -94,8 +96,8 @@ First, we consider the setting with Gaussian test statistics.
## Data Simulation

```{r gauss-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
null_dist <- rnorm_2pvaluer(1) # functional: dist to calc p-values
seed <- 608
```
Expand Down Expand Up @@ -215,8 +217,8 @@ Next, we consider the setting with t-distributed test statistics.
## Data Simulation

```{r t5-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(5) # functional: dist to calc p-values
seed <- 815
```
Expand Down Expand Up @@ -345,9 +347,9 @@ Next, we consider a second setting with t-distributed test statistics.
## Data Simulation

```{r t11-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
seed <- 9158
```

Expand Down Expand Up @@ -475,9 +477,9 @@ Finally, we consider the setting with chi-squared distributed test statistics.
## Data Simulation

```{r chisq4-parameters}
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
ts_dist <- rchisq_perturber(4) # functional: sampling dist/noise for test stats
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
seed <- 1023
```

Expand Down
24 changes: 13 additions & 11 deletions datasets/simulations/simulations-informative-cubic.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ output:
# Summary

In this set of simulations, we consider settings with both null and non-null
tests with an informative covariate. The covariate is sampled uniformly from
tests with an informative and uninformative covariate. The informative covariate is sampled uniformly from
the interval [0, 1], and the conditional probability of a test being non-null
is a smooth (cubic) function of the covariate. We include simulation results
is a smooth (cubic) function of the covariate. The uninformative covariate is simply
uninformly sampled independently from the interval [0, 1]. The uninformative covariate is included
as a baseline to compare the informative covariate against. We include simulation results
again with Gaussian, t-distributed, and Chi-Squared distributed test statistics.

# Workspace Setup
Expand Down Expand Up @@ -94,8 +96,8 @@ First, we consider the setting with Gaussian test statistics.
## Data Simulation

```{r gauss-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
null_dist <- rnorm_2pvaluer(1) # functional: dist to calc p-values
seed <- 608
```
Expand Down Expand Up @@ -215,8 +217,8 @@ Next, we consider the setting with t-distributed test statistics.
## Data Simulation

```{r t5-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(5) # functional: dist to calc p-values
seed <- 815
```
Expand Down Expand Up @@ -345,9 +347,9 @@ Next, we consider a second setting with t-distributed test statistics.
## Data Simulation

```{r t11-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
seed <- 9158
```

Expand Down Expand Up @@ -475,9 +477,9 @@ Finally, we consider the setting with chi-squared distributed test statistics.
## Data Simulation

```{r chisq4-parameters}
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
ts_dist <- rchisq_perturber(4) # functional: sampling dist/noise for test stats
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
seed <- 1023
```

Expand Down
26 changes: 14 additions & 12 deletions datasets/simulations/simulations-informative-sine.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ output:
# Summary

In this set of simulations, we consider settings with both null and non-null
tests with an informative covariate. The covariate is sampled uniformly from
tests with an informative and uninformative covariate. The informative covariate is sampled uniformly from
the interval [0, 1], and the conditional probability of a test being non-null
is a smooth (sine) function of the covariate. We include simulation results
is a smooth (sine) function of the covariate. The uninformative covariate is simply
uninformly sampled independently from the interval [0, 1]. The uninformative covariate is included
as a baseline to compare the informative covariate against. We include simulation results
again with Gaussian, t-distributed, and Chi-Squared distributed test statistics.

# Workspace Setup
Expand Down Expand Up @@ -94,9 +96,9 @@ First, we consider the setting with Gaussian test statistics.
## Data Simulation

```{r gauss-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
null_dist <- rnorm_2pvaluer(1) # functional: dist to calc p-values
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
null_dist <- rnorm_2pvaluer(1) # functional: dist to calc p-values
seed <- 608
```

Expand Down Expand Up @@ -215,8 +217,8 @@ Next, we consider the setting with t-distributed test statistics.
## Data Simulation

```{r t5-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(5) # functional: dist to calc p-values
seed <- 815
```
Expand Down Expand Up @@ -345,9 +347,9 @@ Next, we consider a second setting with t-distributed test statistics.
## Data Simulation

```{r t11-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
seed <- 9158
```

Expand Down Expand Up @@ -475,9 +477,9 @@ Finally, we consider the setting with chi-squared distributed test statistics.
## Data Simulation

```{r chisq4-parameters}
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
ts_dist <- rchisq_perturber(4) # functional: sampling dist/noise for test stats
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
seed <- 1023
```

Expand Down
24 changes: 13 additions & 11 deletions datasets/simulations/simulations-informative-step.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ output:
# Summary

In this set of simulations, we consider settings with both null and non-null
tests with an informative covariate. The covariate is sampled uniformly from
tests with an informative and uninformative covariate. The informative covariate is sampled uniformly from
the interval [0, 1], and the conditional probability of a test being non-null
is a non-smooth (monotone) step function of the covariate. We include simulation results
is a non-smooth monotone step function of the covariate. The uninformative covariate is simply
uninformly sampled independently from the interval [0, 1]. The uninformative covariate is included
as a baseline to compare the informative covariate against. We include simulation results
again with Gaussian, t-distributed, and Chi-Squared distributed test statistics.

# Workspace Setup
Expand Down Expand Up @@ -94,8 +96,8 @@ First, we consider the setting with Gaussian test statistics.
## Data Simulation

```{r gauss-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rnorm_perturber(1) # functional: sampling dist/noise for test stats
null_dist <- rnorm_2pvaluer(1) # functional: dist to calc p-values
seed <- 608
```
Expand Down Expand Up @@ -215,8 +217,8 @@ Next, we consider the setting with t-distributed test statistics.
## Data Simulation

```{r t5-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(5) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(5) # functional: dist to calc p-values
seed <- 815
```
Expand Down Expand Up @@ -345,9 +347,9 @@ Next, we consider a second setting with t-distributed test statistics.
## Data Simulation

```{r t11-parameters}
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
es_dist <- rnorm_generator(3) # functional: dist of alternative test stats
ts_dist <- rt_perturber(11) # functional: sampling dist/noise for test stats
null_dist <- rt_2pvaluer(11) # functional: dist to calc p-values
seed <- 9158
```

Expand Down Expand Up @@ -475,9 +477,9 @@ Finally, we consider the setting with chi-squared distributed test statistics.
## Data Simulation

```{r chisq4-parameters}
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
es_dist <- rnorm_generator(15) # functional: dist of alternative test stats
ts_dist <- rchisq_perturber(4) # functional: sampling dist/noise for test stats
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
null_dist <- rchisq_pvaluer(4) # functional: dist to calc p-values
seed <- 1023
```

Expand Down
2 changes: 1 addition & 1 deletion datasets/simulations/simulations-uasettings-t.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ output:

In this set of simulations, we consider settings with both null and non-null
tests with varying distribution of effect sizes under the non-null (alternative)
setting. An informative covariate is included in the setting as described in
setting. Both informative and uninformative covariates are included in the setting as described in
`simulations-informative-cubic.Rmd`. The effect sizes for non-null tests are
sampled from unimodal distributions composed of a mixture of normal distributions,
as described in the original adaptive shrinkage (ASH) manuscript (Stephens, 2016).
Expand Down
2 changes: 1 addition & 1 deletion datasets/simulations/simulations-uasettings.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ output:

In this set of simulations, we consider settings with both null and non-null
tests with varying distribution of effect sizes under the non-null (alternative)
setting. An informative covariate is included in the setting as described in
setting. Both informative and uninformative covariates are included in the setting as described in
`simulations-informative-cubic.Rmd`. The effect sizes for non-null tests are
sampled from unimodal distributions composed of a mixture of normal distributions,
as described in the original adaptive shrinkage (ASH) manuscript (Stephens, 2016).
Expand Down
4 changes: 2 additions & 2 deletions datasets/simulations/simulations-varyingntests.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ output:

In this set of simulations, we consider settings with varying number of hypothesis
tests. Since many newer FDR controlling approaches require fitting some model to
the independent covariates, they may be sensitive to lower number of tests. An
informative covariate is included in the setting as described in
the independent covariates, they may be sensitive to lower numbers of tests. Both
informative and uninformative covariates are included in these settings as described in
`simulations-informative-sine.Rmd`.

# Workspace Setup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ output:
# Summary

In this set of simulations, we consider settings with both null and non-null
tests with an informative covariate. The covariate is sampled uniformly from
the interval [0, 1], and the conditional probability of a test being non-null
is a non-smooth (monotone) step function of the covariate. We include simulation
results again with Gaussian, t-distributed, and Chi-Squared distributed test statistics.
tests with informative and non-informative covariates as described in
`simulations-informative-step.Rmd`.

This set of simulations differs from `simulations-informative-step.Rmd` only
in the implementation of the AdaPT method for multiple testing correction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ output:

In this set of simulations, we consider settings with both null and non-null
tests with varying distribution of effect sizes under the non-null (alternative)
setting. An informative covariate is included in the setting as described in
setting. Both informative and uninformative covariates are included in the setting as described in
`simulations-informative-cubic.Rmd`. The effect sizes for non-null tests are
sampled from unimodal distributions composed of a mixture of normal distributions,
as described in the original adaptive shrinkage (ASH) manuscript (Stephens, 2016).
Expand Down

0 comments on commit 7ae3eec

Please sign in to comment.