eta_gamma_prior: Prior variance for gamma and eta

Description Usage Arguments Details Value

View source: R/eta_gamma_prior.R

Description

Choose prior variance for eta and gamma based on the data

Usage

1
eta_gamma_prior(X, variants, prob = 0.05, pval_thresh = 0.001)

Arguments

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

Details

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.

Value

A prior variance for gamma and eta (scalar)


jean997/cause documentation built on Dec. 25, 2021, 10 p.m.