View source: R/dimarConstructRegularizationMatrix.R
dimarConstructRegularizationMatrix | R Documentation |
Generates regularization matrix: Expand the design matrix so each predictor has at least one positive entry, this exhibits the regression coefficients to get infinite
dimarConstructRegularizationMatrix(design)
design |
list of response vector, design matrix and predictor type |
list of response vector, design matrix with regularization and predictor type
mtx <- matrix(rnorm(1000),nrow=100)
mtx[sample(c(1:1000),100)] <- NA
design <- dimarConstructDesignMatrix(mtx)
design <- dimarConstructRegularizationMatrix(design)
fit <- glm.fit(design$X, design$y, family=binomial())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.