project_sparse: A streamlined function to project a trait onto a sparse basis...

Description Usage Arguments Value Notes

View source: R/cupfunc.R

Description

A streamlined function to project a trait onto a sparse basis project_sparse

Usage

1
project_sparse(beta, seb, pids)

Arguments

beta

a vector of beta estimates

seb

a vector of standard error of the beta estimates

pids

a vector of primary identifiers for SNPs with the same order as beta and seb

Value

a data.table with the following columns#'

Notes

This function assumes that the following objects are defined in the current environment

This function assumes that the order snps in arguments is the same. Whilst missing SNPs are allowed this will degrade the projection a warining is issued when more than 5


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