Miscellaneous functions useful for teaching statistics as well as actually practicing the art. They typically are not new methods but rather wrappers around either base R or other packages.
A package that includes functions that I find useful for teaching statistics as well as actually practicing the art. They typically are not “new” methods but rather wrappers around either base R or other packages and concepts I’m trying to master. Currently contains:
Plot2WayANOVAwhich as the name implies conducts a 2 way ANOVA and plots the results using
PlotXTabswhich as the name implies plots cross tabulated variables using
newetawhich is a helper function that appends the results of a Type II eta squared calculation onto a classic ANOVA table
Modewhich finds the modal value in a vector of data
SeeDistwhich wraps around ggplot2 to provide visualizations of univariate data.
OurConfis a simulation function that helps you learn about confidence intervals
# Install from CRANinstall.packages("CGPfunctions")# Or the development version from GitHub# install.packages("devtools")devtools::install_github("ibecav/CGPfunctions")
library(CGPfunctions) will load the package which contains 4
SeeDist will give you some plots of the distribution of a variable
Mode is a helper function that simply returns one or more modal values
neweta is a helper function which returns a tibble containing AOV
output similar to summary(aov(MyAOV)) but with eta squared computed and
appended as an additional column
Plot2WayANOVA function conducts a classic analysis using existing
R functions and packages in a sane and defensible manner not necessarily
in the one and only manner.
OurConf is a simulation function that helps you learn about confidence
Many thanks to Dani Navarro and the book > (Learning Statistics with
whose etaSquared function was the genesis of
“He who gives up safety for speed deserves neither.” (via)
If you like CGPfunctions, please consider leaving feedback here.
Contributions in the form of feedback, comments, code, and bug reports are most welcome. How to contribute:
Release 0.4 published on Github 11 June 2018
Release 0.3.1 (hotfix) published on Github 25 April 2018
Release 0.3 published on CRAN