residuals | R Documentation |
Calculate the residuals of a model after removing the effect of the first ncomp
components.
This function is useful to assess the quality of the fit or to identify patterns that are not
captured by the model.
residuals(x, ncomp, xorig, ...)
x |
The model fit object. |
ncomp |
The number of components to factor out before calculating residuals. |
xorig |
The original data matrix (X) used to fit the model. |
... |
Additional arguments passed to the method. |
A matrix of residuals, with the same dimensions as the original data matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.