View source: R/model_selection.R
get_residual_matrix | R Documentation |
Get residuals from fitting a linear model with a matrix of outcomes.
get_residual_matrix(design, outcomes)
design |
A data frame with explanatory variables. |
outcomes |
A data frame like object with outcome variables as rows and observations as columns. |
Calculates regression residuals using a fixed set of explanatory variables and a matrix of outcomes.
A list with the following items:
residuals: A numeric matrix with each column representing the residuals for an outcome. The
ordering follows the row order of outcomes
.
dof: Model degrees of freedom.
get_matrix_r2
get_design_mat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.