Learn R Programming

rcompanion (version 2.5.2)

Functions to Support Extension Education Program Evaluation

Description

Functions and datasets to support Summary and Analysis of Extension Program Evaluation in R, and An R Companion for the Handbook of Biological Statistics. Vignettes are available at .

Copy Link

Version

Install

install.packages('rcompanion')

Monthly Downloads

30,819

Version

2.5.2

License

GPL-3

Maintainer

Salvatore Mangiafico

Last Published

January 11th, 2026

Functions in rcompanion (2.5.2)

compareGLM

Compare fit statistics for glm models
cohenH

Cohen's h to compare proportions for 2 x 2 contingency tables
cateNelsonFixedY

Cate-Nelson models for bivariate data with a fixed critical Y value
cldList

Compact letter display for lists of comparisons
cohenG

Cohen's g and odds ratio for paired contingency tables
cliffDelta

Cliff's delta
cateNelson

Cate-Nelson models for bivariate data
compareLM

Compare fit statistics for lm models
groupwiseMean

Groupwise means and confidence intervals
groupwiseHuber

Groupwise Huber M-estimators and confidence intervals
cohenW

Cohen's w (omega)
groupwiseGeometric

Groupwise geometric means and confidence intervals
groupwiseCMH

Post-hoc tests for Cochran-Mantel-Haenszel test
efronRSquared

Efron's pseudo r-squared
epsilonSquared

Epsilon-squared
groupwiseSum

Groupwise sums
kendallW

Kendall's W with bootstrapped confidence interval
groupwiseMedian

Groupwise medians and confidence intervals
freemanTheta

Freeman's theta
fullPTable

Convert a lower triangle matrix to a full matrix
groupwisePercentile

Groupwise percentiles and confidence intervals
countRSquare

Count pseudo r-squared for logistic and other binary outcome models
nagelkerke

Pseudo r-squared measures for various models
multiVDA

Pairwise Vargha and Delaney's A and Cliff's delta
cramerVFit

Cramer's V for chi-square goodness-of-fit tests
correlation

Correlation and measures of association
cramerV

Cramer's V (phi)
oneSampleDominance

Dominance statistic for one-sample data
ordinalEtaSquared

Eta-squared for ordinal variables
pairwiseDifferences

[Defunct!] Pairwise differences for unreplicated CBD
pairedSampleDominance

Dominance statistic for two-sample paired data
mangiaficoD

Mangiafico's d, or delta MAD
pairwiseNominalIndependence

Pairwise tests of independence for nominal data
pairwiseNominalMatrix

Pairwise tests of independence for nominal data with matrix output
pairwisePermutationMatrix

Pairwise two-sample independence tests with matrix output
pairwisePermutationSymmetry

Pairwise two-sample symmetry tests
nominalSymmetryTest

Exact and McNemar symmetry tests for paired contingency tables
nagelkerkeHermite

[Defunct!] Pseudo r-squared measures for hermite models
pairwiseOrdinalTest

[Defunct!] Pairwise two-sample ordinal regression
pairwisePercentileTest

Pairwise permutation tests for percentiles
multiMangiaficoD

Mangiafico's d
pairwiseMedianMatrix

Pairwise Mood's median tests with matrix output
pairwiseMcnemar

Pairwise McNemar and related tests for Cochran Q test post-hoc
pairwiseOrdinalPairedMatrix

[Defunct!] Pairwise two-sample ordinal regression for paired data with matrix output
pairwiseOrdinalPairedTest

[Defunct!] Pairwise two-sample ordinal regression for paired data
percentileTest

Test of percentiles by permutation test
phi

phi
pairwiseOrdinalIndependence

Pairwise tests of independence for tables with one ordered nominal variable
pairwiseOrdinalMatrix

[Defunct!] Pairwise two-sample ordinal regression with matrix output
pairwiseSignMatrix

[Defunct!] Pairwise sign tests with matrix output
pairwiseSignTest

[Defunct!] Pairwise sign tests
pairwiseMedianTest

Pairwise Mood's median tests
spearmanRho

Spearman's rho, Kendall's tau, Pearson's r
scheirerRayHare

Scheirer Ray Hare test
pairwiseRobustMatrix

[Defunct!] Pairwise two-sample robust tests with matrix output
pairwiseModelAnova

Compare model objects with F test and likelihood ratio test
pairwiseRobustTest

[Defunct!] Pairwise two-sample robust tests
vda

Vargha and Delaney's A
transformTukey

Tukey's Ladder of Powers
wilcoxonOneSampleR

r effect size for Wilcoxon one-sample signed-rank test
wilcoxonOR

Agresti's Generalized Odds Ratio for Stochastic Dominance
plotPredy

Plot a predicted line from a bivariate model
plotNormalHistogram

Histogram with a normal curve
pairwisePermutationTest

Pairwise two-sample independence tests
pairwisePermutationSymmetryMatrix

Pairwise two-sample symmetry tests with matrix output
wilcoxonZ

Wilcoxon z statistic
wilcoxonR

r effect size for Wilcoxon two-sample rank-sum test
plotDensityHistogram

Histogram with a density curve
wilcoxonPS

Grissom and Kim's Probability of Superiority (PS)
wilcoxonOneSampleRC

Rank biserial correlation coefficient for one-sample Wilcoxon test
quantileCI

Quantiles and confidence intervals
rcompanion-package

Functions to Support Extension Education Program Evaluation
plotNormalDensity

Density plot with a normal curve
wilcoxonRG

Glass rank biserial correlation coefficient
wilcoxonPairedR

r effect size for Wilcoxon two-sample paired signed-rank test
wilcoxonPairedRC

Matched-pairs rank biserial correlation coefficient
Anderson

Hypothetical data for Alexander Anderson
accuracy

Minimum maximum accuracy, mean absolute percent error, median absolute error, root mean square error, coefficient of variation, and Efron's pseudo r-squared
blom

Normal scores transformation
PMCMRTable

Convert PMCMR Objects to a Data Frame
AndersonRainBarrel

Hypothetical data for Alexander Anderson on rain barrel installation
HayleySmith

Hypothetical data for responses about adopting lawn care practices
PoohPiglet

Hypothetical data for ratings of Pooh, Piglet, and Tigger
AndersonBias

Hypothetical data for Alexander Anderson with gender bias
AndersonRainGarden

Hypothetical data for Alexander Anderson on rain garden installation
Catbus

Hypothetical data for Catbus and company
Monarchs

Hypothetical data for monarch butterflies in gardens
Pooh

Hypothetical data for paired ratings of Pooh Bear
BrendonSmall

Hypothetical data for Brendon Small and company
BobBelcher

Hypothetical data for ratings of instructors in unreplicated CBD
BullyHill

Hypothetical data for proportion of students passing a certification
Nurseries

Data for proportion of good practices followed by plant nuseries
Breakfast

Hypothetical data for students' breakfast habits and travel to school
Religion

Hypothetical data for change in religion after a caucusing event
Pennsylvania18

Votes for the Democratic candidate in Pennsylvania 18 in 2016 and 2018