Skip to content

LEGIT

Latent Environmental & Genetic InTeraction (LEGIT) Model

v1.4.1 · Jan 24, 2024 · GPL-3

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) <arXiv:1703.08111>. 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 <arXiv:1712.04058>. The software can now produce mixed-effects LEGIT models through the lme4 package.

Downloads

243

Last 30 days

18452nd

748

Last 90 days

2.8K

Last year

Trend: -21.1% (30d vs prior 30d)

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Alexia Jolicoeur-Martineau <alexia.jolicoeur-martineau@mail.mcgill.ca>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Alexia",
                    family = "Jolicoeur-Martineau",
                    role = c("aut", "cre"),
                    email = "alexia.jolicoeur-martineau@mail.mcgill.ca")
as necessary.

The Description field contains
  <arXiv:1703.08111>. This approach has greatly enhanced predictive power
  are available <arXiv:1712.04058>. The software can now produce
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Alexia Jolicoeur-Martineau <alexia.jolicoeur-martineau@mail.mcgill.ca>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Alexia",
                    family = "Jolicoeur-Martineau",
                    role = c("aut", "cre"),
                    email = "alexia.jolicoeur-martineau@mail.mcgill.ca")
as necessary.

The Description field contains
  <arXiv:1703.08111>. This approach has greatly enhanced predictive power
  are available <arXiv:1712.04058>. The software can now produce
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Alexia Jolicoeur-Martineau <alexia.jolicoeur-martineau@mail.mcgill.ca>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Alexia",
                    family = "Jolicoeur-Martineau",
             
...[truncated]...
 Description field contains
  <arXiv:1703.08111>. This approach has greatly enhanced predictive power
  are available <arXiv:1712.04058>. The software can now produce
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Alexia Jolicoeur-Martineau <alexia.jolicoeur-martineau@mail.mcgill.ca>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Alexia",
                    family = "Jolicoeur-Martineau",
             
...[truncated]...
 Description field contains
  <arXiv:1703.08111>. This approach has greatly enhanced predictive power
  are available <arXiv:1712.04058>. The software can now produce
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Dependency Network

Dependencies Reverse dependencies formula.tools pROC foreach snow doSNOW iterators Hmisc boot RColorBrewer glmnet lme4 LEGIT

Version History

new 1.4.1 Mar 10, 2026
updated 1.4.1 ← 1.4.0 diff Jan 23, 2024
updated 1.4.0 ← 1.3.1 diff Jan 10, 2022
updated 1.3.1 ← 1.3 diff Aug 29, 2019
updated 1.3 ← 1.2.3 diff Jul 25, 2019
updated 1.2.3 ← 1.2.2 diff May 19, 2019
updated 1.2.2 ← 1.2.1 diff Jun 20, 2018
updated 1.2.1 ← 1.2.0 diff Feb 6, 2018
updated 1.2.0 ← 1.1.1 diff Dec 7, 2017
updated 1.1.1 ← 1.1.0 diff May 21, 2017
updated 1.1.0 ← 1.0.4 diff May 10, 2017
updated 1.0.4 ← 1.0.3 diff Apr 16, 2017
updated 1.0.3 ← 1.0.2 diff Apr 9, 2017
updated 1.0.2 ← 1.0.1 diff Apr 2, 2017
updated 1.0.1 ← 1.0.0 diff Mar 23, 2017
new 1.0.0 Feb 12, 2017