simulate_beta: simulate betas for an ld block 'simulate_beta' use the...

Description Usage Arguments Value

View source: R/simulate.R

Description

simulate betas for an ld block simulate_beta use the multivariate normal to simulate realistic betas

Usage

1
simulate_beta(sm, lor, se_lor, lor_shrink = 1, n_sims)

Arguments

sm

a snpMatrix object

lor

a vector - observed betas

se_lor

a vector - standard error of betas

lor_shrink

a vector - shrinkage values to use to adjust betas (default 1 no shrinkage)

n_sims

a scalar - number of simulations to conduct

Value

a matrix of simulated betas


ollyburren/cupcake documentation built on July 30, 2020, 9:58 a.m.