pwr.r.test.table: Create a Power Table for a correlation analysis

Description Usage Arguments Value Examples

View source: R/convenience.R

Description

Plot a power analysis table of effect size and power for Pearson's r tests in the style of Richard Morey's jpower JAMOVI module.

Usage

1
2
3
4
5
6
7
8
pwr.r.test.table(
  n,
  sig.level = 0.05,
  alternative = c("two.sided", "less", "greater"),
  kable = TRUE,
  digits = 3,
  ...
)

Arguments

n

The proposed sample size.

sig.level

Significance level, or alpha. Defaults to 0.05.

alternative

The alternative hypothesis. The default is "two.sided", but other options are "less" or "greater".

kable

Should the table be presented as a knitr::kable() figure? Defaults to TRUE. Otherwise a tibble is returned.

digits

The number of digits.

...

Extra input arguments for the knitr::kable() function

Value

A power table.

Examples

1

mathesong/pwrcontour documentation built on Jan. 1, 2021, 9:19 a.m.