linORscale: Transform Beta and SE from linear to logg-odds scale

View source: R/gr-wrenches.R

linORscaleR Documentation

Transform Beta and SE from linear to logg-odds scale

Description

Convert effect sizes and standard error from linear to log-odds scale

Usage

linORscale(beta, se, N0, N1)

Arguments

beta

a numeric vector of Beta in linear scale.

se

a numeric vector of SE in linear scale.

N0

number of controls in the study.

N1

number of cases in the study.

Details

Binary traits in case-control studies can be analysed by BOLT-LMM, which uses a linear model. This function provides an approximation from linear to log-odds scale for Beta and SE, as described in BOLT-LMM manual (https://data.broadinstitute.org/alkesgroup/BOLT-LMM/).

Value

a list containing beta and se.beta in log-odds scale.


GRealesM/IMDtools documentation built on Oct. 3, 2023, 10:04 a.m.