run_cfdr_sims1: Run Simulations

Description Usage Arguments Value

View source: R/run_cfdr_sims.R

Description

Run simulations

Usage

1
2
3
4
run_cfdr_sims1(type.sequence, sample.size = c(20, 20), seed = NULL,
  n.perms = 500, s0 = c(0, 0, 0), level = c(0.02, 0.05, 0.1, 0.2),
  save.data = FALSE, type.def = NULL, huber.maxit = 50,
  stat.names = c("Poisson", "Huber", "t-test"), file.name = NULL)

Arguments

type.sequence

Vector of integers in 1:6 giving the type of each subregion.

sample.size

Vector of length 2 giving sample sizes

seed

Optional - set a seed.

n.perms

Number of permutations to use to estimate lambda.

s0

Vector of length 3 giving additional variance to add to Poisson, Huber and t-test statistics.

B

Number of simulations

Value

A list with elements:

n.f.disc

Number of false disccoveries

n.t.disc

Array 3 x q x B where q is the number of regions of type 4:6


jean997/cfdrSims documentation built on May 18, 2019, 11:43 p.m.