Learn R Programming

rcompanion (version 2.3.26)

PMCMRTable: Convert PMCMR Objects to a Data Frame

Description

Extracts a data frame of comparisons and p-values from an PMCMR object from the PMCMRplus package

Usage

PMCMRTable(PMCMR, reverse = TRUE, digits = 3)

Arguments

PMCMR

A PMCMR object

reverse

If TRUE, reports the comparison as e.g. (B - A = 0). This will more closely match the output of PMCMRplus::summary.PMCMR for all-pairs comparisons. If FALSE, reports the comparison as e.g. (A - B = 0). This will result in the output from rcompanion::cldList matching the output of PMCMRplus::summaryGroup

digits

The significant digits in the output

Value

A data frame of comparisons and p-values

Details

Should produce meaningful output for all-pairs and many-to-one comparisons.

References

http://rcompanion.org/handbook/F_08.html