calculatePartialResiduals | R Documentation |
Computes partial residuals for a selected covariate by adding the product of the regression coefficient and the corresponding design matrix value to the raw residual.
calculatePartialResiduals(y, fitted, X, beta, covariate_idx)
y |
NumericVector of observations. |
fitted |
NumericVector of fitted values. |
X |
NumericMatrix of design matrix values. |
beta |
NumericVector of regression coefficients. |
covariate_idx |
Integer index for the selected covariate (0-indexed). |
NumericVector of partial residuals.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.