Articles
All vignettes
- Checking normality and outliers
Check normality and find outliers with rwf: diagnostic plots, eight normality tests, three outlier detection rules, and the formulas behind them.
- Recoding and stacking data
Recode data with rwf: stack a list of data frames, reverse-score items, turn multiple-response answers into dummy columns and collapse rare factor levels.
- Basic statistical functions
Basic statistics with rwf: Bonferroni and Šidák adjustments, standard scores, skewness, kurtosis, standard errors and confidence intervals, with their formulas.
- Training and testing models
Evaluate classification models with rwf: ROC curves, confusion matrices, separability plots, performance at different cut-offs, and k-fold and k-sample cross-validation.
- ANOVA
ANOVA with rwf: Kruskal-Wallis, one-way and factorial ANOVA, MANOVA, effect sizes and post hoc comparisons, next to the results of established packages.
- ANOVA effect sizes
An ANOVA table with Type I, II or III sums of squares and six effect sizes for every factor, from eta-squared to Cohen’s f, with rwf’s compute_aov_es.
- Post hoc comparisons
Compare every pair of group means after a one-way ANOVA with the Tukey-Kramer and Games-Howell tests, with rwf’s compute_posthoc.
- Correlation
Correlation with rwf: heatmaps, power analysis, a full report of r, p, confidence intervals and adjusted p, and tetrachoric, polychoric, biserial and polyserial correlations.
- Exploratory factor analysis
Exploratory factor analysis with rwf: loadings and scree plots, model loadings, residual statistics and a full EFA report.
- Friedman test
The Friedman test, the non-parametric repeated measures ANOVA, with Kendall’s W as its effect size and a bootstrap confidence interval, with rwf’s compute_friedman_test.
- Hierarchical linear regression
Hierarchical linear regression with rwf’s report_hlr: add predictors in blocks and see how much more variance each block explains, as the change in R².
- Item response theory reports
Item response theory reports with rwf: test information and expected score curves, and a full report of a mirt model with its coefficients, local independence and fit.
- Thurstonian item response theory
Thurstonian IRT for forced-choice and ranking questionnaires with rwf: the comparison design, encoding rank data, ability estimation and MAP scoring from a lavaan model.
- Unidimensional IRT from scratch
Unidimensional IRT from scratch in base R with rwf: the item response function, item and test information for the 1PL, 2PL and 3PL models, and Newton-Raphson ability estimates.
- Kruskal–Wallis test
The Kruskal-Wallis test, the non-parametric one-way ANOVA, with two rank effect sizes and bootstrap confidence intervals, with rwf’s compute_kruskal_wallis_test.
- Linear regression
Linear regression with rwf: scatterplots and full reports of simple and multiple regression models.
- Logistic regression
Logistic regression with rwf: the logistic function, plots of a fitted model, likelihood-ratio tests of nested models and a full diagnostic report.
- t tests and Wilcoxon tests
Pairwise t tests and Wilcoxon tests with rwf’s report_ttests and report_wtests, with effect sizes, confidence intervals and Bonferroni-adjusted significance.
- One-way ANOVA
The one-way ANOVA with Fisher’s or Welch’s F test, five effect sizes and the observed power, with rwf’s compute_one_way_test.
- Plotting means, interactions and ANOVA diagnostics
Plot group means, interactions and ANOVA diagnostics with rwf, to see what the model found and whether its assumptions hold.
- Reliability and validity
Reliability and validity with rwf: Cronbach’s alpha and its item diagnostics, the multitrait-multimethod (MTMM) matrix and Shrout-Fleiss reliability.
- Structural equation modeling and CFA
Structural equation modeling and CFA with rwf: path diagrams without semPlot, a full CFA report and a simulation of how model fit changes with sample size.
- Natural language processing
Natural language processing with rwf: clean text, remove stopwords, tag parts of speech, compare documents and count words and characters.