LogisticToLinearEffects: Transform log odds ratios to linear effects

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

LogisticToLinearEffectsR Documentation

Transform log odds ratios to linear effects

Description

Adopted from R2BGLiMS::JAM_LogisticToLinearEffects. Reference: Benner 2015, FINEMAP

Adopted from R2BGLiMS::JAM_LogisticToLinearEffects. Reference: Benner 2015, FINEMAP

Usage

LogisticToLinearEffects(
  log.ors = NULL,
  log.or.ses = NULL,
  snp.genotype.sds = NULL,
  mafs = NULL,
  n = NULL,
  p.cases = NULL
)

LogisticToLinearEffects(
  log.ors = NULL,
  log.or.ses = NULL,
  snp.genotype.sds = NULL,
  mafs = NULL,
  n = NULL,
  p.cases = NULL
)

Arguments

log.ors

A vector of log odds ratios

log.or.ses

A vector of the standard errors of the log ORs

snp.genotype.sds

A vector of standard deviations of genotypes (optional if 'mafs' is provided)

mafs

A vector of effective allele frequencies (optional if 'snp.genotype.sds' is provided)

n

Sample size in the GWAS where we obtained 'log.ors'

p.cases

A numeric value of the proportion of cases in the GWAS.

Value

Transformed linear effect estimates, and transformed standards errors of linear effects.

Transformed linear effect estimates, and transformed standards errors of linear effects.


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