rcompanion-package: Functions to Support Extension Education Program Evaluation

rcompanion-packageR Documentation

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.

Useful functions

There are several functions that provide summary statistics for grouped data. These function titles tend to start with "groupwise". They provide means, medians, geometric means, and Huber M-estimators for groups, along with confidence intervals by traditional methods and bootstrap.

Functions to produce effect size statistics, some with bootstrapped confidence intervals, include those for Cramer's V, Cohen's g and odds ratio for paired tables, Cohen's h, Cohen's w, Vargha and Delaney's A, Cliff's delta, r for one-sample, two-sample, and paired Wilcoxon and Mann-Whitney tests, epsilon-squared, and Freeman's theta.

The accuracy function reports statistics for models including minimum maximum accuracy, MAPE, RMSE, Efron's pseudo r-squared, and coefficient of variation.

The functions nagelkerke and efronRSquared provide pseudo R-squared values for a variety of model types, as well as a likelihood ratio test for the model as a whole.

There are also functions that are useful for comparing models. compareLM, compareGLM, and pairwiseModelAnova. These use goodness-of-fit measures like AIC, BIC, and BICc, or likelihood ratio tests.

Functions for nominal data include post-hoc tests for Cochran-Mantel-Haenszel test (groupwiseCMH), for McNemar-Bowker test (pairwiseMcnemar), and for tests of association like Chi-square, Fisher exact, and G-test (pairwiseNominalIndependence).

There are a few useful plotting functions, including plotNormalHistogram that plots a histogram of values and overlays a normal curve, and plotPredy which plots of line for predicted values for a bivariate model. Other plotting functions include producing density plots.

A function close to my heart is cateNelson, which performs Cate-Nelson analysis for bivariate data.

Vignettes and examples

The functions in this package are used in "Extension Education Program Evaluation in R" which is available at https://rcompanion.org/handbook/ and "An R Companion for the Handbook of Biological Statistics" which is available at https://rcompanion.org/rcompanion/.

The documentation for each function includes an example as well.

Version notes

Version 2.0 is not entirely back-compatible as several functions have been removed. These include some of the pairwise methods that can be replaced with better methods. Also, some functions have been removed or modified in order to import fewer packages.

Removed packages are indicated with 'Defunct' in their titles.


rcompanion documentation built on May 29, 2024, 8:42 a.m.