View source: R/SieveFittingModels.R
create_index_matrix | R Documentation |
Create the index matrix for multivariate regression
create_index_matrix(xdim, basisN = NULL, maxj = NULL, interaction_order = 5)
xdim |
a number. It specifies the predictors' dimension. |
basisN |
a number. The number of basis function to use. |
maxj |
a number. We use this to specify the largest row product in the index list. |
interaction_order |
a number The maximum order of interaction. 1 means additive model, 2 means including pairwise interaction terms, etc. |
a matrix. The first column is the product of the indices, the rest columns are the index vectors for constructing multivariate basis functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.