R: Functions to Streamline Statistical Analysis and Reporting

# Functions to Streamline Statistical Analysis and Reporting

## Documentation for package ‘colleyRstats’ version 0.0.3

- DESCRIPTION file
- Package NEWS
- Package README

## Help Pages

%!in% | Negate '%in%' membership
add_pareto_emoa_column | Add Pareto EMOA Column to a Data Frame
checkAssumptionsForAnova | Check the assumptions for an ANOVA with a variable number of factors: Normality and Homogeneity of variance assumption.
check_homogeneity_by_group | Check homogeneity of variances across groups
check_normality_by_group | Check normality for groups
colleyRstats_setup | Configure Global R Environment for colleyRstats
data the data frame | Replace values across a data frame
debug_contr_error | Debug contrast errors in ANOVA-like models
generateEffectPlot | Function to define a plot, either showing the main or interaction effect in bold.
generateMoboPlot | Generate a Multi-objective Optimization Plot
generateMoboPlot2 | Generate a Multi-objective Optimization Plot
ggbetweenstatsWithPriorNormalityCheck | Check the data's distribution. If non-normal, take the non-parametric variant of _ggbetweenstats_. x and y have to be in parentheses, e.g., "ConditionID".
ggbetweenstatsWithPriorNormalityCheckAsterisk | Check the data's distribution. If non-normal, take the non-parametric variant of _ggbetweenstats_. x and y have to be in parentheses, e.g., "ConditionID".
ggwithinstatsWithPriorNormalityCheck | Check the data's distribution. If non-normal, take the non-parametric variant of _ggwithinstats_. x and y have to be in parentheses, e.g., "ConditionID".
ggwithinstatsWithPriorNormalityCheckAsterisk | Check the data's distribution. If non-normal, take the non-parametric variant of _ggwithinstats_. x and y have to be in parentheses, e.g., "ConditionID". Add Asterisks instead of p-values.
latexify_report | Transform text from 'report::report()' into LaTeX-friendly output.
na.zero | Replace NA values with zero
normalize | This function normalizes the values in a vector to the range [new_min, new_max] based on their original range [old_min, old_max].
not_empty | Ensure input is not empty
not_in | Negate '%in%' membership
n_fun | Build a median/size label for plot annotations
pathPrep | Convert Windows paths to R-friendly format
remove_outliers_REI | Remove outliers and calculate REI
replace_values | Replace values across a data frame
reportART | Generate the Latex-text based on the ARTool (see <https://github.com/mjskay/ARTool>). The ART result must be piped into an anova(). Only significant main and interaction effects are reported. P-values are rounded for the third digit. Attention: Effect sizes are not calculated! Attention: the independent variables of the formula and the term specifying the participant must be factors (i.e., use as.factor()).
reportDunnTest | Report dunnTest as text. Required commands in LaTeX: '\newcommand{\padjminor}{\textit{p$_{adj}<$}}' '\newcommand{\padj}{\textit{p$_{adj}$=}}' '\newcommand{\rankbiserial}[1]{$r_{rb} = #1$}'
reportDunnTestTable | report Dunn test as a table. Customizable with sensible defaults. Required commands in LaTeX: '\newcommand{\padjminor}{\textit{p$_{adj}<$}}' '\newcommand{\padj}{\textit{p$_{adj}$=}}' '\newcommand{\rankbiserial}[1]{$r_{rb} = #1$}'
reportggstatsplot | Report statistical details for ggstatsplot.
reportggstatsplotPostHoc | Report significant post-hoc pairwise comparisons
reportMeanAndSD | Report the mean and standard deviation of a dependent variable for all levels of an independent variable rounded to the 2nd digit.
reportNparLD | Report the model produced by nparLD. The model provided must be the model generated by the command 'nparLD' 'nparLD' (see <https://CRAN.R-project.org/package=nparLD>).
reportNPAV | Generate the Latex-text based on the NPAV by Lüpsen (see <https://www.uni-koeln.de/~luepsen/R/>). Only significant main and interaction effects are reported. P-values are rounded for the third digit and partial eta squared values are provided when possible. Attention: the independent variables of the formula and the term specifying the participant must be factors (i.e., use as.factor()).
reshape_data | Reshape Excel Data Based on Custom Markers and Include Custom ID Column
rFromNPAV | Calculation based on Rosenthal's formula (1994). N stands for the _number of measurements_. Necessary command:
rFromWilcox | Calculation based on Rosenthal's formula (1994). N stands for the _number of measurements_.
rFromWilcoxAdjusted | rFromWilcoxAdjusted
stat_sum_df | Generating the sum and adding a crossbar.