calc_m: Calculate m

View source: R/calc_m.R

calc_mR Documentation

Calculate m

Description

This function performs the reparameterization step originally described in Carter, G. W., Hays, M., Sherman, A. & Galitski, T. Use of pleiotropy to model genetic interactions in a population. PLoS Genet. 8, e1003010 (2012).

Usage

calc_m(markers, beta_m)

Arguments

markers

A vector of length two holding the names of the markers being tested.

beta_m

The matrix of beta values from the pairwise linear regression testing the interaction between the markers.

Value

This function returns a matrix with one row holding the m12 and m21 values as described in Carter et al. 2012


cape documentation built on May 29, 2024, 5:11 a.m.