construct_ints: constructs selected interactions

Description Usage Arguments See Also Examples

Description

This function constructs interaction terms

Usage

1
construct_ints(x, top_ints, modifier = NULL)

Arguments

x

matrix of predictors

top_ints

nints x 2 integer matrix of interaction terms

modifier

effect modifier

See Also

filter_top, compute_cors, and intscreen

Examples

1
2
3
4
5
6
7
8
x <- matrix(rnorm(1000 * 500), ncol = 500)
y <- rnorm(1000)

cormat <- compute_cors(x, y)

int_idx <- filter_top(cormat, nints = 50)

int_mat <- construct_ints(x, ints)

jaredhuling/intscreen documentation built on May 19, 2019, 9:38 p.m.