append_observed_residuals {recmetrics} | R Documentation |
Compute observed residuals for each variables in data and appends these newly created variables to the original dataset.
append_observed_residuals(data, na.rm = TRUE)
data |
A data.frame or tibble |
na.rm |
logical (defaults to TRUE) |
A numeric matrix of correlations among variable residuals.
# Use the SCWB data example
data(SCWB)
append_observed_residuals(SCWB[, 1:20])