Skip to content

SAS macros for the Latent Environmental & Genetic InTeraction (LEGIT) model

License

Notifications You must be signed in to change notification settings

AlexiaJM/LEGIT_SAS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

LEGIT_SAS

SAS macros for the Latent Environmental & Genetic InTeraction (LEGIT) model.

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

About

SAS macros for the Latent Environmental & Genetic InTeraction (LEGIT) model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages