Package 'varGWASR'

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-09-26 04:47:12 UTC
Source: https://github.com/MRCIEU/varGWASR

Help Index


Test for effect of SNP on outcome variance using the LAD-BF model

Description

Test for effect of SNP on outcome variance using the LAD-BF model

Usage

model(data, x, y, covar1 = NULL, covar2 = NULL)

Arguments

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

Value

Dataframe containing variance effect for SNP=1 (phi_x1) and SNP=2 (phi_x2) with SE and p and F-stat