LEGIT

Latent Environmental & Genetic InTeraction (LEGIT) Model

CRAN Package

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

  • Version1.4.1
  • R versionunknown
  • LicenseGPL-3
  • Needs compilation?No
  • Last release01/24/2024

Documentation


Team


Insights

Last 30 days

This package has been downloaded 263 times in the last 30 days. More than a random curiosity, but not quite a blockbuster. Still, it's gaining traction! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 47 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 9, 2025
0 downloadsMar 10, 2025
0 downloadsMar 11, 2025
0 downloadsMar 12, 2025
0 downloadsMar 13, 2025
2 downloadsMar 14, 2025
32 downloadsMar 15, 2025
1 downloadsMar 16, 2025
1 downloadsMar 17, 2025
9 downloadsMar 18, 2025
3 downloadsMar 19, 2025
9 downloadsMar 20, 2025
9 downloadsMar 21, 2025
5 downloadsMar 22, 2025
5 downloadsMar 23, 2025
4 downloadsMar 24, 2025
6 downloadsMar 25, 2025
2 downloadsMar 26, 2025
4 downloadsMar 27, 2025
31 downloadsMar 28, 2025
0 downloadsMar 29, 2025
9 downloadsMar 30, 2025
3 downloadsMar 31, 2025
2 downloadsApr 1, 2025
6 downloadsApr 2, 2025
6 downloadsApr 3, 2025
18 downloadsApr 4, 2025
5 downloadsApr 5, 2025
5 downloadsApr 6, 2025
16 downloadsApr 7, 2025
8 downloadsApr 8, 2025
5 downloadsApr 9, 2025
0 downloadsApr 10, 2025
10 downloadsApr 11, 2025
47 downloadsApr 12, 2025
0
47

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Last 365 days

This package has been downloaded 3,914 times in the last 365 days. Consider this 'mid-tier influencer' status—if it were a TikTok, it would get a nod from nieces and nephews. The day with the most downloads was Sep 11, 2024 with 52 downloads.

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports10 packages
  • Suggests2 packages