Other packages > Find by keyword >

LEGIT  

Latent Environmental & Genetic InTeraction (LEGIT) Model
View on CRAN: Click here


Download and install LEGIT package within the R console
Install from CRAN:
install.packages("LEGIT")

Install from Github:
library("remotes")
install_github("cran/LEGIT")

Install by package version:
library("remotes")
install_version("LEGIT", "1.4.1")



Attach the package and use:
library("LEGIT")
Maintained by
Alexia Jolicoeur-Martineau
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2017-02-13
Latest Update: 2024-01-24
Description:
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.
How to cite:
Alexia Jolicoeur-Martineau (2017). LEGIT: Latent Environmental & Genetic InTeraction (LEGIT) Model. R package version 1.4.1, https://cran.r-project.org/web/packages/LEGIT. Accessed 06 Mar. 2026.
Previous versions and publish date:
1.0.0 (2017-02-13 23:59), 1.0.1 (2017-03-24 06:37), 1.0.2 (2017-04-03 01:34), 1.0.3 (2017-04-10 00:14), 1.0.4 (2017-04-17 23:36), 1.1.0 (2017-05-11 07:58), 1.1.1 (2017-05-22 00:59), 1.2.0 (2017-12-08 22:56), 1.2.1 (2018-02-07 18:14), 1.2.2 (2018-06-21 22:57), 1.2.3 (2019-05-20 00:30), 1.3.1 (2019-08-30 01:20), 1.3 (2019-07-26 14:20), 1.4.0 (2022-01-11 23:52)
Other packages that cited LEGIT R package
View LEGIT citation profile
Other R packages that LEGIT depends, imports, suggests or enhances
Complete documentation for LEGIT
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

solitude  
An Implementation of Isolation Forest
Isolation forest is anomaly detection method introduced by the paper Isolation based Anomaly Detecti ...
Download / Learn more Package Citations See dependency  
mlr3viz  
Visualizations for 'mlr3'
Visualization package of the 'mlr3' ecosystem. It features plots for mlr3 objects such as tasks, le ...
Download / Learn more Package Citations See dependency  
openxlsx  
Read, Write and Edit xlsx Files
Simplifies the creation of Excel .xlsx files by providing a high level interface to writing, stylin ...
Download / Learn more Package Citations See dependency  
DatabionicSwarm  
Swarm Intelligence for Self-Organized Clustering
Algorithms implementing populations of agents that interact with one another and sense their environ ...
Download / Learn more Package Citations See dependency  
lbfgs  
Limited-memory BFGS Optimization
A wrapper built around the libLBFGS optimization library by Naoaki Okazaki. The lbfgs package implem ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,244

Author Associations

26,265

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA