append_observed_residuals: Append Observed Correlations to Data

View source: R/utils.R

append_observed_residualsR Documentation

Append Observed Correlations to Data

Description

Compute observed residuals for each variables in data and appends these newly created variables to the original dataset.

Usage

append_observed_residuals(data, na.rm = TRUE)

Arguments

data

A data.frame or tibble

na.rm

logical (defaults to TRUE)

Value

A numeric matrix of correlations among variable residuals.

Examples

  # Use the SCWB data example
  data(SCWB)
  append_observed_residuals(SCWB[, 1:20])

recmetrics documentation built on May 29, 2024, 6:02 a.m.