cfdr_sims4: Run Simulations

Description Usage Arguments

View source: R/cfdr_sims4.R

Description

Run simulations

Usage

1
2
3
4
5
6
cfdr_sims4(x, pk.ht.funcs, type.sequence, seed = NULL, n.perms = 500,
  n.seg = c(), auto.min.length = c(), level = c(0.02, 0.05, 0.1, 0.2),
  peak.base = 20, null.factor = 10, save.data = FALSE, file.name = NULL,
  data.only = FALSE, random.peak.loc = FALSE, min.peak.sep = 2,
  s0 = c(0, 0, 0), stat.funcs = c(qpois_stats_binary, huber_stats, t_stats),
  stat.names = c("Poisson", "Huber", "T"))

Arguments

x

Trait

pk.ht.funcs

List of peak height functions. Each should take in a value of x and return a a list of "height"=peak height (or vector of peak heights) and "assoc" as a vector indicating if each peak is associated with x or not. "assoc" should be fixed for all values of x.

type.sequence

Vector of integers stating which peak height function to use.

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.


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