View source: R/dimarConstructDesignMatrix.R
dimarConstructDesignMatrix | R Documentation |
Constructs design matrix with the factorial row/col predictors and the mean intensity
dimarConstructDesignMatrix(mtx)
mtx |
Quantitative matrix |
list of response vector, design matrix and vector of 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())
mtx <- matrix(rnorm(1000),nrow=100)
mtx[sample(c(1:1000),100)] <- NA
design <- dimarConstructDesignMatrix(mtx)
fit <- glm.fit(design$X, design$y, family=binomial())
yhat <- exp(design$X %*% coefficients(fit))/(1+exp(design$X %*% coefficients(fit)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.