WWER: Fits a regression of outcome on exposure using SE and weights...

View source: R/WWER.R

WWERR Documentation

Fits a regression of outcome on exposure using SE and weights as weights.

Description

Fits a regression of outcome on exposure using SE and weights as weights.

Usage

WWER(b_exp, b_out, se_exp, se_out, weights)

Arguments

b_exp

Vector of floats. SNP effects on exposure.

b_out

Vector of floats. SNP effects on outcome.

se_exp

Vector of floats. Standard error of SNP effects on exposure.

se_out

Vector of floats. Standard error of SNP effects on outcome.

weights

Vector of floats. Welch weights to use for regression, will be combined with the SE of the outcome to determine final weights.


brielin/WWER documentation built on May 22, 2022, 7:28 p.m.