Package: LEGIT 1.4.1

LEGIT: Latent Environmental & Genetic InTeraction (LEGIT) Model

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.

Authors:Alexia Jolicoeur-Martineau <[email protected]>

LEGIT_1.4.1.tar.gz
LEGIT_1.4.1.zip(r-4.5)LEGIT_1.4.1.zip(r-4.4)LEGIT_1.4.1.zip(r-4.3)
LEGIT_1.4.1.tgz(r-4.4-any)LEGIT_1.4.1.tgz(r-4.3-any)
LEGIT_1.4.1.tar.gz(r-4.5-noble)LEGIT_1.4.1.tar.gz(r-4.4-noble)
LEGIT_1.4.1.tgz(r-4.4-emscripten)LEGIT_1.4.1.tgz(r-4.3-emscripten)
LEGIT.pdf |LEGIT.html
LEGIT/json (API)
NEWS

# Install 'LEGIT' in R:
install.packages('LEGIT', repos = c('https://alexiajm.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.31 score 34 scripts 321 downloads 2 mentions 28 exports 83 dependencies

Last updated 10 months agofrom:d19facb6fc. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 21 2024
R-4.5-winOKNov 21 2024
R-4.5-linuxOKNov 21 2024
R-4.4-winOKNov 21 2024
R-4.4-macOKNov 21 2024
R-4.3-winOKNov 21 2024
R-4.3-macOKNov 21 2024

Exports:backward_stepbackward_step_IMbest_modelbootstrap_var_selectelastic_net_var_selectexample_2wayexample_2way_lme4example_3wayexample_3way_3latentexample_with_crossoverforward_stepforward_step_IMgenetic_var_selectGxE_interaction_RoSGxE_interaction_testIMLEGITIMLEGIT_cvIMLEGIT_netIMLEGIT_to_LEGITLEGITLEGIT_cvLEGIT_to_IMLEGITlongitudinal_foldsnes_var_selectr1nes_var_selectrGEstepwise_searchstepwise_search_IM

Dependencies:backportsbase64encbootbslibcachemcheckmatecliclustercodetoolscolorspacedata.tabledigestdoSNOWevaluatefansifarverfastmapfontawesomeforeachforeignFormulaformula.toolsfsggplot2glmnetgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobanditeratorsjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixmemoisemgcvmimeminqamunsellnlmenloptrnnetoperator.toolspillarpkgconfigplyrpROCR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownrpartrstudioapisassscalesshapesnowstringistringrsurvivaltibbletinytexutf8vctrsviridisviridisLitewithrxfunyaml

Elastic Net

Rendered fromElasticNet.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2019-07-26
Started: 2019-07-26

GxE Testing

Rendered fromGxE_testing.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2024-01-25
Started: 2017-12-08

Latent Environmental & Genetic InTeraction (LEGIT) modelling

Rendered fromLEGIT.Rmdusingknitr::rmarkdownon Nov 21 2024.

Last update: 2022-01-11
Started: 2017-02-13

Readme and manuals

Help Manual

Help pageTopics
Best modelbest_model
Best model from elastic net variable selectionbest_model.elastic_net_var_select
Bootstrap variable selection (for IMLEGIT)bootstrap_var_select
Elastic net for variable selection in IMLEGIT modelelastic_net_var_select
Simulated example of a 2 way interaction GxE model.example_2way
Simulated example of a 3 way interaction GxExZ modelexample_2way_lme4
Simulated example of a 3 way interaction GxExz modelexample_3way
Simulated example of a 3 way interaction GxExZ modelexample_3way_3latent
Simulated example of a 2 way interaction GxE model with crossover point.example_with_crossover
Parallel genetic algorithm variable selection (for IMLEGIT)genetic_var_select
Regions of significance using Johnson-Neyman techniqueGxE_interaction_RoS
Testing of the GxE interactionGxE_interaction_test
Independent Multiple Latent Environmental & Genetic InTeraction (IMLEGIT) modelIMLEGIT
Cross-validation for the IMLEGIT modelIMLEGIT_cv
Independent Multiple Latent Environmental & Genetic InTeraction (IMLEGIT) model with Elastic Net on the latent variables. Do not use on it's own, use elastic_net_var_select instead.IMLEGIT_net
IMLEGIT to LEGITIMLEGIT_to_LEGIT
Latent Environmental & Genetic InTeraction (LEGIT) modelLEGIT
Cross-validation for the LEGIT modelLEGIT_cv
LEGIT to IMLEGITLEGIT_to_IMLEGIT
Longitudinal foldslongitudinal_folds
Parallel natural evolutionary variable selection assuming bernouilli distribution (for IMLEGIT)nes_var_select
Plot function for the output of elastic_net_var_selectplot.elastic_net_var_select
Plotplot.LEGIT
Predictions of IMLEGIT fitspredict.IMLEGIT
Predictions of LEGIT fitspredict.LEGIT
Parallel natural evolutionary variable selection assuming multivariate normal search distribution with a simple covariance matrix parametrization (for IMLEGIT)r1nes_var_select
Gene-Environment correlation estimation and testingrGE
Gene-Environment correlation estimation and testing of IMLEGIT modelsrGE.IMLEGIT
Gene-Environment correlation estimation and testing of LEGIT modelsrGE.LEGIT
Stepwise search for the best subset of genetic variants or environments with the LEGIT modelstepwise_search
Stepwise search for the best subset of elements in the latent variables with the IMLEGIT modelstepwise_search_IM
Summary function for the output of elastic_net_var_selectsummary.elastic_net_var_select
Summarizing IMLEGIT fitssummary.IMLEGIT
Summarizing LEGIT fitssummary.LEGIT