chisqposttest: Chi-Square Post-Hoc Tests

View source: R/chisqposttest.h.R

chisqposttestR Documentation

Chi-Square Post-Hoc Tests

Description

Performs Chi-Square test and post-hoc pairwise comparisons.

Usage

chisqposttest(
  data,
  rows,
  cols,
  posthoc = "bonferroni",
  sig = 0.05,
  excl = FALSE,
  exp = FALSE,
  plot = FALSE
)

Arguments

data

The data as a data frame.

rows

variable in the rows

cols

variable in the columns

posthoc

Method for p-value adjustment in post-hoc tests

sig

alpha level for significance testing

excl

exclude missing values from analysis

exp

show expected values in the table

plot

display plot of standardized residuals

Value

A results object containing:

results$todo a html
results$chisqTable a table
results$contingencyTable a html
results$posthocTable a table
results$plotOutput an image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$chisqTable$asDF

as.data.frame(results$chisqTable)

Examples


# example will be added


sbalci/ClinicoPathJamoviModule documentation built on June 13, 2025, 9:34 a.m.