Package 'MRchecks'

Title: Tools for detecting genetic variants whose effect changes with age and associated bias
Description: This package is a collection of tools to detect SNPs whose effect varies with age whose. owoeosds sd sd. sdsfw. sdfsers s es .
Authors: Jeremy Labrecque [aut, cre]
Maintainer: Jeremy Labrecque <[email protected]>
License: `use_mit_license()`, `use_gpl3_license()` or friends to pick a license
Version: 0.0.0.9000
Built: 2024-10-05 03:56:04 UTC
Source: https://github.com/jalabrecque/MRchecks

Help Index


Estimate bias from age-varying genetic effects in Mendelian randomization

Description

Takes output from SNPxAGE_model and estimates the bias due to age-varying genetic effects under different exposure windows and at two different ages

Usage

SNPxAGE_bias(SNPxAGE_model_output, rep = 2, age_set = 65)

Arguments

SNPxAGE_model_output

Output from SNPxAGE_model

rep

Numerical value of the number of iterations to run the simulations

Value

A list of results


Function to estimate the per-allele effect at each age

Description

Function to estimate the per-allele effect at each age

Usage

SNPxAGE_effect(SNPxAGE_output, reps = 10, ages = 40:70)

Flexibly modeling the age/phenotype association by genetic variant

Description

Takes a genetic variant or single nucleotide polymorphism (SNP) and a phenotype it's associated with and estimates how the relationship between the two varies with age using splines.

Usage

SNPxAGE_model(data, SNP, phenotype, age, covars, k = 3, pred_ages, type = "cr")

Arguments

data

A data frame containing the SNP, age and phenotype variables

SNP

A character string with the name of the SNP variable in the data frame. This variable itself must be a factor variable containing at most 3 unique values indicating the number of copies

phenotype

A character string with the name of the phenotype variable in the data frame

age

A character string with the name of the age variable in the data frame

covars

A character vector with the names of the variables to be adjusted for (e.g. principal components)

type

A character string with the type splines to be used (see mgcv function)

knots

A numeric value indicating the number of internal knots (default 3)

Value

A list including the model and parameters used. If pred_ages is supplied then the predictions for those ages is also returned.

Author(s)

Jeremy A Labrecque, [email protected]

References

TBA


Function to plot absolute value of pheontype for each genotype

Description

Function to plot absolute value of pheontype for each genotype

Usage

SNPxAGE_plot(SNPxAGE_model_output)