apa.r.compare.across.samples: Report difference between correlations in markdown APA style...

View source: R/apa_correlation.R

apa.r.compare.across.samplesR Documentation

Report difference between correlations in markdown APA style from different samples

Description

Report difference between correlations in markdown APA style from different samples

Usage

apa.r.compare.across.samples(
  formula,
  data1,
  data2,
  alternative = "two.sided",
  show.conf.interval = NULL,
  show.N = NULL,
  show.p = NULL,
  show.statistic = NULL
)

Arguments

formula

Formula for comparing correlations

data1

Project data frame 1 name

data2

Project data frame 2 name

alternative

Alternative hypothesis to pass to alternative argument of cocor.indep.groups. Default is "two.sided"

show.conf.interval

Show confidence interval or not (TRUE/FALSE). Default behavior is TRUE.

show.N

Show sample size or not (TRUE/FALSE). Default behavior is TRUE.

show.p

Show p-value or not (TRUE/FALSE). Default behavior is TRUE.

show.statistic

Show test statistic or not (TRUE/FALSE). Default behavior is TRUE.

Value

R Markdown text

Examples


# Test difference between r(rating, learning) from dataset: attitude
# and r(weight, height) from dataset: women

apa.r.compare.across.samples(formula = ~ rating + learning | height + weight,
                             data1 = attitude,
                             data2 = women)

apaText documentation built on May 31, 2023, 5:19 p.m.