Learn R Programming

rcompanion (version 2.5.1)

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

34,946

Version

2.5.1

License

GPL-3

Maintainer

Salvatore Mangiafico

Last Published

November 19th, 2025

Functions in rcompanion (2.5.1)

compareLM

Compare fit statistics for lm models
cohenG

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

Correlation and measures of association
cohenH

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

Compare fit statistics for glm models
cldList

Compact letter display for lists of comparisons
cliffDelta

Cliff's delta
countRSquare

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

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

Cohen's w (omega)
groupwiseHuber

Groupwise Huber M-estimators and confidence intervals
cramerV

Cramer's V (phi)
cramerVFit

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

Groupwise means and confidence intervals
efronRSquared

Efron's pseudo r-squared
fullPTable

Convert a lower triangle matrix to a full matrix
groupwiseGeometric

Groupwise geometric means and confidence intervals
freemanTheta

Freeman's theta
epsilonSquared

Epsilon-squared
groupwiseCMH

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

Groupwise sums
groupwiseMedian

Groupwise medians and confidence intervals
multiMangiaficoD

Mangiafico's d
multiVDA

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

Pseudo r-squared measures for various models
kendallW

Kendall's W with bootstrapped confidence interval
nagelkerkeHermite

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

Exact and McNemar symmetry tests for paired contingency tables
mangiaficoD

Mangiafico's d, or delta MAD
groupwisePercentile

Groupwise percentiles and confidence intervals
pairedSampleDominance

Dominance statistic for two-sample paired data
pairwiseMedianTest

Pairwise Mood's median tests
pairwiseModelAnova

Compare model objects with F test and likelihood ratio test
pairwiseNominalMatrix

Pairwise tests of independence for nominal data with matrix output
pairwiseMcnemar

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

Dominance statistic for one-sample data
pairwiseNominalIndependence

Pairwise tests of independence for nominal data
ordinalEtaSquared

Eta-squared for ordinal variables
pairwiseMedianMatrix

Pairwise Mood's median tests with matrix output
pairwiseDifferences

[Defunct!] Pairwise differences for unreplicated CBD
pairwisePercentileTest

Pairwise permutation tests for percentiles
pairwiseOrdinalTest

[Defunct!] Pairwise two-sample ordinal regression
pairwiseOrdinalMatrix

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

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

Pairwise two-sample symmetry tests with matrix output
pairwisePermutationMatrix

Pairwise two-sample independence tests with matrix output
pairwisePermutationSymmetry

Pairwise two-sample symmetry tests
pairwiseOrdinalIndependence

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

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

Pairwise two-sample independence tests
plotDensityHistogram

Histogram with a density curve
plotNormalDensity

Density plot with a normal curve
plotNormalHistogram

Histogram with a normal curve
phi

phi
pairwiseRobustMatrix

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

[Defunct!] Pairwise two-sample robust tests
pairwiseSignMatrix

[Defunct!] Pairwise sign tests with matrix output
percentileTest

Test of percentiles by permutation test
pairwiseSignTest

[Defunct!] Pairwise sign tests
plotPredy

Plot a predicted line from a bivariate model
quantileCI

Quantiles and confidence intervals
vda

Vargha and Delaney's A
scheirerRayHare

Scheirer Ray Hare test
wilcoxonPS

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

Tukey's Ladder of Powers
wilcoxonOR

Agresti's Generalized Odds Ratio for Stochastic Dominance
rcompanion-package

Functions to Support Extension Education Program Evaluation
wilcoxonOneSampleR

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

Rank biserial correlation coefficient for one-sample Wilcoxon test
spearmanRho

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

Wilcoxon z statistic
wilcoxonR

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

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

Glass rank biserial correlation coefficient
wilcoxonPairedRC

Matched-pairs rank biserial correlation coefficient
BrendonSmall

Hypothetical data for Brendon Small and company
Catbus

Hypothetical data for Catbus and company
HayleySmith

Hypothetical data for responses about adopting lawn care practices
AndersonRainBarrel

Hypothetical data for Alexander Anderson on rain barrel installation
PMCMRTable

Convert PMCMR Objects to a Data Frame
cateNelson

Cate-Nelson models for bivariate data
blom

Normal scores transformation
accuracy

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

Hypothetical data for paired ratings of Pooh Bear
BobBelcher

Hypothetical data for ratings of instructors in unreplicated CBD
Monarchs

Hypothetical data for monarch butterflies in gardens
Pennsylvania18

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

Hypothetical data for proportion of students passing a certification
Religion

Hypothetical data for change in religion after a caucusing event
Anderson

Hypothetical data for Alexander Anderson
Breakfast

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

Data for proportion of good practices followed by plant nuseries
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