get_XtX: Get transformed statistics: XtX

View source: R/mJAM_helper_chrX.R View source: R/mJAM_helper.R

get_XtXR Documentation

Get transformed statistics: XtX

Description

To calculate sufficient statistics based on summary statistics

To calculate sufficient statistics based on summary statistics

Usage

get_XtX(N_outcome, Gl, maf)

get_XtX(N_outcome, Gl, maf)

Arguments

N_outcome

Sample size in the GWAS where we obtained 'betas'

Gl

A matrix of reference dosage, columns are SNPs and rows are individuals.

maf

A vector of minor allele frequencies

Value

a variance covariance matrix of scaled Gl

a variance covariance matrix of scaled Gl


USCbiostats/hJAM documentation built on Jan. 26, 2024, 5:27 p.m.