cross_interactions: Compute Cross-Interactions

View source: R/main_functions.R

cross_interactionsR Documentation

Compute Cross-Interactions

Description

cross_interactions computes all cross interactions, that is, products of columns, between the matrices z1 nad z2.

Usage

cross_interactions(z1, z2, ident = "")

Arguments

z1

n x p1 dimensional matrix, each column corresponds to one covariate.

z2

n x p2 dimensional matrix, each column corresponds to one covariate.

Value

n x (p1*p2) Matrix which contains the cross interactions z1[,i]*z2[,j] for i=1,...,p1 and j=1,...,p2. The column name gives involved covariates.

Authors

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

Christoph Rothe, University of Mannheim, Germany

See Also

fourier_basis, interaction_terms, HighDim_rd


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