Skip to contents

Prepare sparse matrix with interactions.

Usage

interSparseM(data, k, corr_cut = 0.9)

Arguments

data

data table / dataframe

k

order of interactions: defaults to pairwise interactions

corr_cut

cutoff for correlation threshold to drop one of the vars (default = 0.9)

Value

matrix with interactions