This function calculates raw residuals for both regression and
train objects within a
other arguments to be passed to residuals
A data.frame in the long format with columns for the model method, the observation id, yhat for the fitted values, resid for the residuals, and y for the observed value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.