tryxAdjustmentMV: MR-TRYX Multivariate Adjustment

View source: R/tryxAdjustmentMV.R

tryxAdjustmentMVR Documentation

MR-TRYX Multivariate Adjustment

Description

This function takes the output from the tryx::sig() function and runs multivariateMR to estimate adjusted candidate outlier - outcome associations.

Usage

tryxAdjustmentMV(tryxscan, lasso = TRUE, id_remove = NULL, proxies = FALSE)

Arguments

tryxscan

Result from trys::sig() function

lasso

Whether to shrink the estimates of each trait within SNP. Default=TRUE.

id_remove

List of IDs to exclude from the adjustment analysis. It is possible that in the outlier search a candidate trait will come up which is essentially just a surrogate for the outcome trait (e.g. if you are analysing coronary heart disease as the outcome then a variable related to heart disease medication might come up as a candidate trait). Adjusting for a trait which is essentially the same as the outcome will erroneously nullify the result, so visually inspect the candidate trait list and remove those that are inappropriate.

proxies

Look for proxies in the MVMR methods. Default = FALSE.

Value

List


asalzy/mrtryxhelpR documentation built on May 6, 2023, 11:52 p.m.