transform_betas: Transform betas

View source: R/extract_snps.R

transform_betasR Documentation

Transform betas

Description

Transform betas from a linear model to a log odds ratio scale. Assumes betas have been derived from a linear model of case-control status regressed on SNP genotype (additively coded).

Usage

transform_betas(dat = NULL, effect = "lnor", effect.se = "se")

Arguments

dat

the target dataset rsids

effect

the column containing the beta. We wish to transform this to a log odds ratio scale

effect.se

standard error for the beta

Value

data frame


MRCIEU/mrQC documentation built on May 6, 2023, 1:40 p.m.