correlation_summary: Correlation summary

View source: R/calc_critical_r.R

correlation_summaryR Documentation

Correlation summary

Description

Function to calculate correlation coefficients and tidy output

Usage

correlation_summary(
  df,
  x = "x",
  y = "y",
  method = "pearson",
  conf_level = 0.95
)

Arguments

df

Data frame containing model variables

x

x-component for model

y

y-component for model

method

a character string indicating which correlation coefficient is to be used for the test. One of "pearson", "kendall", or "spearman".

conf_level

confidence level for the returned confidence interval

Value

Tibble

Author(s)

Shona Wilde


shonawilde/shonarrr documentation built on Jan. 29, 2025, 1:27 a.m.