Description Usage Arguments Details Value
View source: R/eta_gamma_prior.R
Choose prior variance for eta and gamma based on the data
1 | eta_gamma_prior(X, variants, prob = 0.05, pval_thresh = 0.001)
|
X |
An object of class cause_data containing data for the two traits. |
variants |
A vector of variants to include in the analysis. |
prob |
See Details |
pval_thresh |
A p-value threshold applied to trait 1 (M). This prevents |
The function will return a variance, sigma, such that P(abs(z) > k) = prob where z is a N(0, sigma) random variable, k = max(abs(beta_hat_2/beta_hat_1)) and prob is specified in the arguments of the function.
A prior variance for gamma and eta (scalar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.