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 07 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

SAMtool  
Stock Assessment Methods Toolkit
Simulation tools for closed-loop simulation are provided for the 'MSEtool' operating model to inform ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
lmSubsets  
Exact Variable-Subset Selection in Linear Regression
Exact and approximation algorithms for variable-subset selection in ordinary linear regression mode ...
Download / Learn more Package Citations See dependency  
testDriveR  
Teaching Data for Statistics and Data Science
Provides data sets for teaching statistics and data science courses. It includes a sample of data f ...
Download / Learn more Package Citations See dependency  
ReviewR  
A Light-Weight, Portable Tool for Reviewing Individual Patient Records
A portable Shiny tool to explore patient-level electronic health record data and perform chart revi ...
Download / Learn more Package Citations See dependency  
portalr  
Create Useful Summaries of the Portal Data
Download and generate summaries for the rodent, plant, ant, and weather data from the Portal Projec ...
Download / Learn more Package Citations See dependency  

26,264

R Packages

223,360

Dependencies

70,376

Author Associations

26,265

Publication Badges

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