Travis build status Codecov test coverage cran version Monthly Downloads Total Downloads

The goal of gwsem is to provide users with the opportunity to analyze the complex, interconnected array of risk factors, biomarkers, environmental antecedents, comorbid disorders, and other health outcomes on a genome-wide basis using structural equation modeling techniques.

At the moment, plink formats are not supported on the ARM64 architecture. This shortcoming is likely easy to cure once we get access to ARM64 hardware for testing.


GW-SEM utilizes the optimization function of OpenMx.

You can install the released version of OpenMx from CRAN with:


If you want a new version of OpenMx, you can follow the instruction to build it from source HERE.

You can install the released version of gwsem from CRAN with:


GW-SEM is currently under development. Therefore, the CRAN version of the software may not include the latest modifactions, enhancements, or functionality.

If you want to use a development snapshot, clone the source code and do

git clone
cd gwsem
Rscript tools/test.R

You cannot use devtools install_github because it does not run roxygen2.