compute_seb_proj_var_sparse: analytically compute the variance of a projection given a...

Description Usage Arguments Value

View source: R/variance.R

Description

analytically compute the variance of a projection given a standard error of beta for a given trait for sparse basis compute_seb_proj_var_sparse

Usage

1
2
3
4
5
6
7
8
compute_seb_proj_var_sparse(
  gwas.DT,
  shrink.DT,
  w.DT,
  sm,
  method = "shrinkage",
  quiet = FALSE
)

Arguments

gwas.DT

a data.table - variants and summary statistics

shrink.DT

a data.table - as returned by compute_shrinkage_metrics

w.DT

a data.table - a data table of weights/rotations from a basis first column is 'pid' and subsequent columns for each principal component.

sm

snpMatrix object - a snp matrix object of reference genotypes for

method

scalar - shrinkage method to use (default shrinkage) but also valid is none

quiet

a scalar - boolean whether to show progress messages

Value

a scalar of variances for each principal component


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