interaction_terms: Compute Interaction Terms

View source: R/main_functions.R

interaction_termsR Documentation

Compute Interaction Terms

Description

interaction_terms computes all interaction terms of the covariates, that is, the products of columns, provided in z.

Usage

interaction_terms(z)

Arguments

z

n x p matrix, each column corresponds to one covariate

Value

Matrix with n rows and each columns, corresponds to one interaction, i.e., z[,i]*z[,j] for i,j=1,...,p and i<j. The column name gives the exact variables which were interacted.

Authors

Alexander Kreiss, Leipzig University, Germany. alexander.kreiss@math.uni-leipzig.de

Christoph Rothe, University of Mannheim, Germany

See Also

fourier_basis, HighDim_rd, cross_interactions


akreiss/HighDimRD documentation built on Nov. 21, 2023, 9:24 a.m.