Linear Model Interaction Terms Optimizer
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Linear Model Interaction Terms Optimizer

Applies particle swarm optimization to the set of interaction terms to include in an ordinary least squares regression (OLS).

For a discussion and example results, please see

Running / Getting Started

The algorithm itself is in R/lmito.R. An example driver using data from the Panel Study of Income Dynamics (PSID) is in example.R.

To run the core algorithm in serial mode using 4 particles and 4 iterations, just source example.R.

To run the algorithm on Apache Spark (with a larger / potentially more-robust number of particles and iterations), follow instructions inside example.R to enable the correct parameters. This mode will require Apache Spark 2.0 or higher -- good instructions for setting up a Spark 2.0 installation on Amazon Web Services (along with SparkR) are at

Please contact with questions or comments.