Learn R Programming

apaText (version 0.1.7)

apa.r.compare.across.samples.from.descriptive: 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.from.descriptive(
  r1,
  r2,
  n1,
  n2,
  alternative = "two.sided",
  show.conf.interval = NULL,
  show.N = NULL,
  show.p = NULL,
  show.statistic = NULL
)

Value

R Markdown text

Arguments

r1

Correlation in sample 1

r2

Correlation in sample 2

n1

Sample size for sample 1

n2

Sample size for sample 2

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.

Examples

Run this code
apa.r.compare.across.samples.from.descriptive(r1 = .3, r2 =.6, n1 = 70, n2 =80)

Run the code above in your browser using DataLab