Run simulations
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"))
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.