The MODELMATRIX Procedure

Overview: MODELMATRIX Procedure

The MODELMATRIX procedure creates a design matrix (matrix of covariates) that is associated with a user-specified MODEL statement and a user-specified data table in SAS Viya.

The design matrix is the fundamental component of any regression model; it is often expressed as the bold upper X matrix.

Each observation in the user-specified data table corresponds to a row in the design matrix. The columns of the design matrix are the parameters that are included in a regression model.

The models that PROC MODELMATRIX supports can contain main effects for continuous and classification variables and interaction effects of these variables. The models can also include constructed effects such as splines.

Last updated: November 05, 2020