Learn R Programming

LogicForest (version 2.1.3)

build.interactions: Building Interactions

Description

Builds interactions found from logic forest fit

Usage

build.interactions(
  fit,
  test.data,
  n_ints = NULL,
  remove_negated = FALSE,
  req_frequency = NULL
)

Value

A dataframe containing the the input dataframe and the interactions built from logic forest.

Arguments

fit

Fitted logic regression tree object containing outcome, model type, and logic tree information.

test.data

Any dataset that contains the variables to create the interactions

n_ints

Max number of interactions to build

remove_negated

Whether to build interactions that consist of only negated PIs (True/False)

req_frequency

Minimum frequency required to build interaction (0-1)

Author

Andrew Gothard andrew.gothard@osumc.edu

Details

This function creates the interactions in the data that are found via logic forest.

References

Wolf BJ, Hill EG, Slate EH. Logic Forest: an ensemble classifier for discovering logical combinations of binary markers. Bioinformatics. 2010;26(17):2183–2189. tools:::Rd_expr_doi("10.1093/bioinformatics/btq354")

See Also

logforest