tryx.analyse.mv: Analyse tryx results

Description Usage Arguments Value

View source: R/adjustment.r

Description

This returns various heterogeneity statistics, IVW estimates for raw, adjusted and outlier removed datasets, and summary of peripheral traits detected etc.

Usage

1
2
3
4
5
6
7
tryx.analyse.mv(
  tryxscan,
  lasso = TRUE,
  plot = TRUE,
  id_remove = NULL,
  proxies = FALSE
)

Arguments

tryxscan

Output from tryx.scan

lasso

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

plot

Whether to plot or not. Default is 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.

filter_duplicate_outliers

Whether to only allow each putative outlier to be adjusted by a single trait (in order of largest divergence). Default is TRUE.

Value

List of - adj_full: data frame of SNP adjustments for all candidate traits - adj: The results from adj_full selected to adjust the exposure-outcome model - Q: Heterogeneity stats - estimates: Adjusted and unadjested exposure-outcome effects - plot: Radial plot showing the comparison of different methods and the changes in SNP effects ater adjustment Adjust and analyse the tryx results

Similar to tryx.analyse, but when there are multiple traits associated with a single variant then we use a LASSO-based multivariable approach

List of - adj_full: data frame of SNP adjustments for all candidate traits - adj: The results from adj_full selected to adjust the exposure-outcome model - Q: Heterogeneity stats - estimates: Adjusted and unadjested exposure-outcome effects - plot: Radial plot showing the comparison of different methods and the changes in SNP effects ater adjustment


explodecomputer/tryx documentation built on July 26, 2020, 2:45 p.m.