CRAN/E | LEGIT

LEGIT

Latent Environmental & Genetic InTeraction (LEGIT) Model

Installation

About

Constructs genotype x environment interaction (GxE) models where G is a weighted sum of genetic variants (genetic score) and E is a weighted sum of environments (environmental score) using the alternating optimization algorithm by Jolicoeur-Martineau et al. (2017) . This approach has greatly enhanced predictive power over traditional GxE models which include only a single genetic variant and a single environmental exposure. Although this approach was originally made for GxE modelling, it is flexible and does not require the use of genetic and environmental variables. It can also handle more than 2 latent variables (rather than just G and E) and 3-way interactions or more. The LEGIT model produces highly interpretable results and is very parameter-efficient thus it can even be used with small sample sizes (n < 250). Tools to determine the type of interaction (vantage sensitivity, diathesis-stress or differential susceptibility), with any number of genetic variants or environments, are available . The software can now produce mixed-effects LEGIT models through the lme4 package.

Key Metrics

Version 1.4.1
Published 2024-01-24 93 days ago
Needs compilation? no
License GPL-3
CRAN checks LEGIT results

Downloads

Yesterday 19 -21%
Last 7 days 74 +3%
Last 30 days 310 -14%
Last 90 days 1.024 -6%
Last 365 days 3.694 -18%

Maintainer

Maintainer

Alexia Jolicoeur-Martineau

alexia.jolicoeur-martineau@mail.mcgill.ca

Authors

Alexia Jolicoeur-Martineau

Material

NEWS
Reference manual
Package source

Vignettes

Elastic Net
GxE Testing
Latent Environmental & Genetic InTeraction (LEGIT) modelling

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

LEGIT archive

Depends

formula.tools
stats
graphics

Imports

pROC
foreach
snow
doSNOW
utils
iterators
Hmisc
grDevices
boot
RColorBrewer
glmnet
lme4
methods

Suggests

knitr
rmarkdown