get_residual_matrix: Calculate residual matrix

View source: R/model_selection.R

get_residual_matrixR Documentation

Calculate residual matrix

Description

Get residuals from fitting a linear model with a matrix of outcomes.

Usage

get_residual_matrix(design, outcomes)

Arguments

design

A data frame with explanatory variables.

outcomes

A data frame like object with outcome variables as rows and observations as columns.

Details

Calculates regression residuals using a fixed set of explanatory variables and a matrix of outcomes.

Value

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.

See Also

get_matrix_r2 get_design_mat


bryancquach/omixjutsu documentation built on Jan. 29, 2023, 3:47 p.m.