bin2lin: binomial to linear regression conversion

Description Usage Arguments Details Value Author(s)

Description

Convert binomial to linear regression

Usage

1
bin2lin(D, doplot = FALSE)

Arguments

D

standard format coloc dataset

doplot

plot results if TRUE - useful for debugging

Details

Estimate beta and varbeta if a linear regression had been run on a binary outcome, given log OR and their variance + MAF in controls

sets beta = cov(x,y)/var(x) varbeta = (var(y)/var(x) - cov(x,y)^2/var(x)^2)/N

Value

D, with original beta and varbeta in beta.bin, varbeta.bin, and beta and varbeta updated to linear estimates

Author(s)

Chris Wallace


chr1swallace/coloc documentation built on June 10, 2021, 8:38 p.m.