View source: R/main_functions.R
interaction_terms | R Documentation |
interaction_terms
computes all interaction terms of the covariates,
that is, the products of columns, provided in z.
interaction_terms(z)
z |
n x p matrix, each column corresponds to one covariate |
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.
Alexander Kreiss, Leipzig University, Germany. alexander.kreiss@math.uni-leipzig.de
Christoph Rothe, University of Mannheim, Germany
fourier_basis
, HighDim_rd
,
cross_interactions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.