View source: R/MegaLMM_master.R
MegaLMM_priors | R Documentation |
Function to create list of priors for MegaLMM model.
MegaLMM_priors(
tot_Y_var = list(V = 0.5, nu = 3),
tot_F_var = list(V = 18/20, nu = 20),
h2_priors_resids_fun = function(h2s, n) 1,
h2_priors_factors_fun = function(h2s, n) 1,
Lambda_prior = list(sampler = sample_Lambda_prec_horseshoe, prop_0 = 0.1, delta_l =
list(shape = 3, rate = 1), delta_iterations_factor = 100),
B2_prior = list(sampler = sample_B2_prec_horseshoe, prop_0 = 0.1),
cis_effects_prior = list(prec = 1)
)
tot_Y_var |
List of parameters of inverse gamma distribution for residual variances, specifically:
|
tot_F_var |
List of parameters of inverse gamma distribution for factor variances. See |
h2_priors_resids_fun |
function that returns prior probability for a given vector of variance component proportions for each random effect
The function must take two arguments - a vector of variance component proportions: |
h2_priors_factors_fun |
see |
Lambda_prior |
A list with elements:
1) |
cis_effects_prior |
Currently accepts a list with a single value giving the precision of each cis_effect variable |
B_prior |
A list with elements:
1) |
Default values are provided, but any can be replaced. Note: h2_priors_resids
and
h2_priors_factors
can be set after calling MegaLMM_init
and before sample_MegaLMM
if that is easier. See Vignette.
a list with each of the prior components specified above.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.