corr_stats: corr_stats

corr_statsR Documentation

corr_stats

Description

edits dataframe report of linear regression and correlation tests (Pearson and Spearman)

Usage

corr_stats(data_lm, X, Y, as_character = F, n = 3, m = 4)

Arguments

data_lm

a data frame with X and Y data

X

name of X variable column (character)

Y

name of Y variable column (character)

as_character

reports statistics formatted as characters. Default is FALSE.

n

number of digits to display in correlation coefficient/rho. Default is 3. Only used if as_character = T.

m

number of digits to display in regression equation parameters (slope, y-intercept). Default is 4. Only used if as_character = T.

Value

report of regression and correlation tests


isobxr documentation built on Aug. 23, 2023, 5:06 p.m.