effect_size_distributions | R Documentation |
Generate any number of random values drawn from the locus effect size distributions.
rbayesB(n, pi, d.f, scale)
rbayesB_fixed(n, sites, d.f, scale)
rbayesA(n, d.f, scale)
rzero_inflated_normal(n, pi, sd, scale)
rzero_inflated_normal_fixed(n, sites, sd, scale)
rflat(n, pi, scale)
rflat_fixed(n, sites, scale)
n |
numeric. Number of draws to make from the distribution |
pi |
numeric. Probability that any one site has zero effect |
d.f |
numeric. Degrees of freedom for the effect size t distribution. |
scale |
numeric. Scale/shape parameter for the scaled t distribution. |
sites |
numeric. Number of sites that have an effect. |
sd |
numeric. Standard deviation for the effect size t distribution. |
rbayesB
: assign some loci an effect from a scaled t distribution given a probablity of non-zero effects
rbayesB_fixed
: assign a fixed number of loci effects from a scaled t distribution
rbayesA
: assign all loci effects from a scaled t distribution
rzero_inflated_normal
: assign some loci an effect from a scaled normal distribution given a probability of non-zero effects
rzero_inflated_normal_fixed
: assign a fixed number of loci effects from a scaled normal distribution
rflat
: asign loci a fixed effect given a probability of non-zero effects
rflat_fixed
: assign a fixed number of loci a fixed effect
Under a bayesB model, each locus has probability pi of having no effect. Effects are otherwise drawn from a scaled t distribution with degrees of freedom d.f and scale scale. Alternatively, a fixed number of sites (sites) can be given an effect from the same distribution. This is equivalent to the expected number of sites when pi = 1 - (sites/n), where n is the number of loci.
Under a bayesA model, all loci have effects drawn from a scaled t distribution with degrees of freedom d.f and scale scale. This is equivalent to a bayesB model where pi is equal to 0.
Effects are drawn from a normal distribution where var(g) == 0. Each locus has probability pi of having no effect. Effects are otherwise drawn from a normal distribution with mean 0, standard deviation sd, and scale scale. Alternatively, a fixed number of sites (sites) can be given an effect from the same distribution. This is equivalent to the expected number of sites when pi = 1 - (sites/n), where n is the number of loci.
Each locus has probability pi of having no effect. Effects are otherwise equal to the parameter scale scale. Alternatively, a fixed number of sites (sites) can be given an effect from the same distribution. This is equivalent to the expected number of sites when pi = 1 - (sites/n), where n is the number of loci.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.