sample_beta: Sample beta values given standard errors

View source: R/theoretical_gwas.R

sample_betaR Documentation

Sample beta values given standard errors

Description

Sample beta values given standard errors

Usage

sample_beta(beta, se, r = NULL, af = NULL)

Arguments

beta

array of beta values - i.e. the true coefficients. If using the correlation matrix r then this should be an LD-aware set of expected beta values.

se

array of se values

r

matrix of LD correlations amongst the SNPs. If NULL (default) then assumes no LD

af

array of allele frequencies. Must be non-null if r is non-null.

Value

array of beta hats


explodecomputer/simulateGP documentation built on April 3, 2024, 2:38 a.m.