--interactions

Switch

--interactions

Description

Enables interactions with multivariate regression.

Argument and Default Value

No argument. Boolean switch, default: False.

Details

When set, pairwise interaction terms between all features are added to the design matrix before fitting the multiple regression, so the model can capture non-additive effects between features rather than only their independent contributions.

Other Switches

Required Switches:

  • --multir

Optional Switches:

None

Example Commands

Using the packaged dla_tutorial dataset (see Differential Language Analysis (DLA) Tutorial):

dlatkInterface.py -d dla_tutorial -t msgs -c user_id -f 'feat$1gram$msgs$user_id$16to16' \
--outcome_table blog_outcomes --outcomes age gender --multir --interactions