Correlation Results Summary Table

Description

Creates a flextable showing correlation results alongside descriptive statistics in a compact format suitable for quick review.

Usage

create_corr_table(rh_name, vars, corr_results_list)

Arguments

rh_name Character string. Name/label for the research hypothesis.
vars Character vector of length 2. Variable names.
corr_results_list Output from corr_answers().

Value

A flextable::flextable() object.

Examples

library("psych350lab")

data(superman, package = "psych350data")
result <- corr_answers(superman, "clark_height_in", "rt_critics_score")
ft <- create_corr_table("RH1", c("clark_height_in", "rt_critics_score"), result)
ft

r / Mean

p / SD

df / N

Reject or Retain?

Correlation: RH1

.03

.950

6

Retain the H0 null hypothesis

Variable 1: clark_height_in

73.37

1.68

11

Variable 2: rt_critics_score

79.38

10.53

8