Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexiajm/legit_sas
SAS macros for the Latent Environmental & Genetic InTeraction (LEGIT) model
https://github.com/alexiajm/legit_sas
environment genetics glm gxe interactions latent-variable-models macros sas
Last synced: about 2 months ago
JSON representation
SAS macros for the Latent Environmental & Genetic InTeraction (LEGIT) model
- Host: GitHub
- URL: https://github.com/alexiajm/legit_sas
- Owner: AlexiaJM
- License: gpl-3.0
- Created: 2017-02-13T16:33:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-10T18:30:16.000Z (over 7 years ago)
- Last Synced: 2023-10-20T16:25:01.120Z (about 1 year ago)
- Topics: environment, genetics, glm, gxe, interactions, latent-variable-models, macros, sas
- Language: SAS
- Size: 31.3 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LEGIT_SAS
SAS macros for the *Latent Environmental & Genetic InTeraction* (LEGIT) model.![](https://raw.githubusercontent.com/AlexiaJM/LEGIT/master/images/LEGIT.png)
**R package vs SAS macros**
The R package LEGIT provides similar functions but the implementation is incredibly faster. In R, it is also much easier to set the model properly with a single formula instead of the clunky way it is done in SAS. The stepwise search function in R is also much better and does multiple steps (instead of just one step in SAS). It provides forward, backward, stepwise-forward and stepwise-backward search instead of just forward search. It is completely automatic but can also be runned in interactive mode where you choose which variable to add at every step based on the information shown to you. The SAS macros have not implemented more than two latent variables (G and E only). The only thing that the R package cannot do is mixed models.
Therefore, for fixed-effect models, I highly recommend using R exclusively and for mixed models, I recommend using the stepwise search function in R to find the best subset of variables assuming no random effects and then refitting the best model in SAS with the random effects.
**References**
* https://arxiv.org/abs/1703.08111
* https://ajolicoeur.wordpress.com/legit/