Learn R Programming

rcompanion (version 2.5.4)

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

10,249

Version

2.5.4

License

GPL-3

Maintainer

Salvatore Mangiafico

Last Published

August 20th, 2026

Functions in rcompanion (2.5.4)

countRSquare

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

Cliff's delta
cldList

Compact letter display for lists of comparisons
cateNelsonFixedY

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

Compare fit statistics for glm models
compareLM

Compare fit statistics for lm models
cohenG

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

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

Correlation and measures of association
cohenW

Cohen's w (omega)
cramerVFit

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

Epsilon-squared
groupwiseHuber

Groupwise Huber M-estimators and confidence intervals
groupwiseGeometric

Groupwise geometric means and confidence intervals
cramerV

Cramer's V (phi)
groupwiseCMH

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

Freeman's theta
fullPTable

Convert a lower triangle matrix to a full matrix
groupwiseFiveNumber

Groupwise quantiles
efronRSquared

Efron's pseudo r-squared
nagelkerkeHermite

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

Groupwise means and confidence intervals
groupwisePercentile

Groupwise percentiles and confidence intervals
groupwiseSum

Groupwise sums
groupwiseMedian

Groupwise medians and confidence intervals
nagelkerke

Pseudo r-squared measures for various models
mangiaficoD

Mangiafico's d, or delta MAD
kendallW

Kendall's W with bootstrapped confidence interval
multiVDA

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

Mangiafico's d
pairedSampleDominance

Dominance statistic for two-sample paired data
pairwiseMcnemar

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

Exact and McNemar symmetry tests for paired contingency tables
ordinalEtaSquared

Eta-squared for ordinal variables
pairwiseModelAnova

Compare model objects with F test and likelihood ratio test
pairwiseNominalIndependence

Pairwise tests of independence for nominal data
pairwiseMedianMatrix

Pairwise Mood's median tests with matrix output
pairwiseMedianTest

Pairwise Mood's median tests
oneSampleDominance

Dominance statistic for one-sample data
pairwiseDifferences

[Defunct!] Pairwise differences for unreplicated CBD
pairwiseOrdinalPairedMatrix

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

[Defunct!] Pairwise two-sample ordinal regression
pairwiseOrdinalPairedTest

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

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

Pairwise tests of independence for nominal data with matrix output
pairwisePermutationMatrix

Pairwise two-sample independence tests with matrix output
pairwiseOrdinalMatrix

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

Pairwise permutation tests for percentiles
pairwisePermutationSymmetryMatrix

Pairwise two-sample symmetry tests with matrix output
pairwisePermutationSymmetry

Pairwise two-sample symmetry tests
pairwiseRobustTest

[Defunct!] Pairwise two-sample robust tests
pairwiseSignMatrix

[Defunct!] Pairwise sign tests with matrix output
plotDensityHistogram

Histogram with a density curve
pairwiseSignTest

[Defunct!] Pairwise sign tests
pairwisePermutationTest

Pairwise two-sample independence tests
percentileTest

Test of percentiles by permutation test
phi

phi
plotNormalDensity

Density plot with a normal curve
pairwiseRobustMatrix

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

Histogram with a normal curve
quantileCI

Quantiles and confidence intervals
wilcoxonOR

Agresti's Generalized Odds Ratio for Stochastic Dominance
plotPredy

Plot a predicted line from a bivariate model
rcompanion-package

Functions to Support Extension Education Program Evaluation
wilcoxonOneSampleRC

Rank biserial correlation coefficient for one-sample Wilcoxon test
spearmanRho

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

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

Tukey's Ladder of Powers
scheirerRayHare

Scheirer Ray Hare test
vda

Vargha and Delaney's A
wilcoxonPairedR

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

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

Matched-pairs rank biserial correlation coefficient
wilcoxonRG

Glass rank biserial correlation coefficient
wilcoxonR

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

Wilcoxon z statistic
BrendonSmall

Hypothetical data for Brendon Small and company
PMCMRTable

Convert PMCMR Objects to a Data Frame
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
cateNelson

Cate-Nelson models for bivariate data
Pennsylvania18

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

Hypothetical data for proportion of students passing a certification
AndersonRainBarrel

Hypothetical data for Alexander Anderson on rain barrel installation
HayleySmith

Hypothetical data for responses about adopting lawn care practices
AndersonRainGarden

Hypothetical data for Alexander Anderson on rain garden installation
Pooh

Hypothetical data for paired ratings of Pooh Bear
Nurseries

Data for proportion of good practices followed by plant nuseries
Breakfast

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

Hypothetical data for Alexander Anderson
Catbus

Hypothetical data for Catbus and company
BobBelcher

Hypothetical data for ratings of instructors in unreplicated CBD
AndersonBias

Hypothetical data for Alexander Anderson with gender bias
Religion

Hypothetical data for change in religion after a caucusing event
PoohPiglet

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

Hypothetical data for monarch butterflies in gardens