get_z: Get transformed statistics: z, or Xty

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

get_zR Documentation

Get transformed statistics: z, or Xty

Description

To calculate sufficient statistics based on summary statistics

To calculate sufficient statistics based on summary statistics

Usage

get_z(maf, betas, N_outcome)

get_z(maf, betas, N_outcome)

Arguments

maf

A vector of minor allele frequencies

betas

A vector of marginal estimates of effect sizes (betas for continuous outcome; logOR for binary outcome)

N_outcome

Sample size in the GWAS where we obtained 'betas'

Value

a numeric vector of calculated z statistic

a numeric vector of calculated z statistic


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