txt_mcnemar_report: Summary text functions for html tables

txt_mcnemar_reportR Documentation

Summary text functions for html tables

Description

This function returns html formatted text summary of McNemar's Chi-sqauare test, for paired data. The input object must be a 'mcnemar.test' object, and the p-value is formatted by the 'htmlTable::txtPval()' function.

Usage

txt_mcnemar_report(mcnemar_object)

Arguments

mcnemar_object

A McNemar's Chi-square object

See Also

txtPval, sprintf, mcnemar.test

Examples

ex <- data.frame(A = sample(c("No", "Yes"), 9, replace = T),
                 B = sample(c("No", "Yes"), 9, replace = T))
ex
result <- mcnemar.test(table(ex$A, ex$B))
txt_mcnemar_report(result)

JMLuther/tabletools documentation built on July 1, 2024, 2:01 p.m.