make_assoc_stats: Make Categorical Association Statistics

Description Usage Arguments Value

Description

Makes several common measures of association for contingency tables. The p-values are obtained through simulation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
make_assoc_stats(
  x,
  y,
  chisq = FALSE,
  phi = FALSE,
  cramersV = TRUE,
  lambda = FALSE,
  gamma = TRUE,
  d = FALSE,
  taub = TRUE,
  n = 1000,
  weight = NULL
)

Arguments

x

The row-variable in a contingency table

y

The column-variable in a contingency table

chisq

Logical indicating whether the chi-squared statistic should be produced.

phi

Logical indicating whether the phi statistic should be produced.

cramersV

Logical indicating whether the Cramer's V statistic should be produced.

lambda

Logical indicating whether the lambda statistic should be produced.

gamma

Logical indicating whether the gamma statistic for ordinal data should be produced.

d

Logical indicating whether Somer's D for ordinal data should be produced.

taub

Logical indicating whether Kendall's Tau-b statistic should be produced.

n

Number of iterations in the simulation.

weight

Vector of weights used to generate the table.

Value

A matrix of statistics and p-values.


DAMisc documentation built on Jan. 12, 2022, 1:07 a.m.