Title: | Least Absolute Deviation Regression Brown Forsythe Test |
---|---|
Description: | Brown-Forsythe SNP test using LAD regression and variance effect estimate |
Authors: | Matthew Lyon [aut, cre] |
Maintainer: | Matthew Lyon <[email protected]> |
License: | use_gpl3_license() |
Version: | 1.0.0 |
Built: | 2024-12-25 04:29:58 UTC |
Source: | https://github.com/MRCIEU/varGWASR |
Test for effect of SNP on outcome variance using the LAD-BF model
model(data, x, y, covar1 = NULL, covar2 = NULL)
model(data, x, y, covar1 = NULL, covar2 = NULL)
data |
Dataframe of observations |
x |
Name of SNP dosage |
y |
Name of outcome |
covar1 |
Optional vector of covariates to include in the first-stage model |
covar2 |
Optional vector of covariates to include in the second-stage model |
Dataframe containing variance effect for SNP=1 (phi_x1) and SNP=2 (phi_x2) with SE and p and F-stat