getDesignMatrix {folda} | R Documentation |
Generate the Design Matrix for LDA Model
Description
Generate the Design Matrix for LDA Model
Usage
getDesignMatrix(modelLDA, data, scale = FALSE)
Arguments
modelLDA |
A fitted LDA model object containing the terms, variable indices, variable centers, and scaling factors. |
data |
A data frame containing the predictor variables that are used to create the design matrix. |
scale |
A logical value indicating whether to scale the design matrix
based on the mean and standard deviation of the variables (default is
|
Value
A design matrix where each row corresponds to an observation and
each column to a predictor variable. If scale = TRUE
, the variables are
centered and scaled based on the means and standard deviations provided in
the LDA model object.
[Package folda version 0.1.0 Index]