mariposa: 'SPSS'-Compatible Statistical Tools for Survey Data

Statistical analysis of survey data with full support for survey weights, grouped operations, and 'tidyverse' integration. Provides 80 functions for data import/export ('SPSS', 'Stata', 'SAS', 'Excel') with label roundtripping and tagged NA preservation, label management (variable labels, value labels, type conversions, missing value declaration), data transformation (recoding, dummy coding, standardization, centering), descriptive statistics, codebook generation, hypothesis testing, correlation analysis, post-hoc comparisons, weighted statistics, scale analysis, regression, non-parametric tests, exact tests, factorial ANOVA, and ANCOVA. Every analysis offers compact print() and detailed summary() output with toggleable sections. Statistical results are validated against 'SPSS' version 29 within documented per-tier tolerances (see the compatibility vignette for per-function status). Methods follow the published algorithms of IBM Corp. (2023, "IBM SPSS Statistics Algorithms"), the Lilliefors-corrected normality test of Dallal and Wilkinson (1986) <doi:10.1080/00031305.1986.10475419>, and the adjusted standardized residuals of Haberman (1973) <doi:10.2307/2529686>. Designed for survey researchers, social scientists, and students working with complex survey designs.

Version: 0.7.3
Depends: R (≥ 4.1.0)
Imports: cli (≥ 3.0.0), htmltools (≥ 0.5.0), stats, utils, dplyr (≥ 1.0.0), rlang (≥ 1.0.0), tidyselect (≥ 1.1.0), tibble (≥ 3.0.0)
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, covr, haven (≥ 2.4.0), GPArotation, MASS, openxlsx2, survey, broom, psych, lavaan, semTools, nortest
Published: 2026-09-28
DOI: 10.32614/CRAN.package.mariposa (may not be active yet)
Author: Yannick Diehl [aut, cre]
Maintainer: Yannick Diehl <yannick.diehl at gmail.com>
BugReports: https://github.com/YannickDiehl/mariposa/issues
License: MIT + file LICENSE
URL: https://YannickDiehl.github.io/mariposa/, https://github.com/YannickDiehl/mariposa
NeedsCompilation: no
Language: en
Materials: README, NEWS
CRAN checks: mariposa results

Documentation:

Reference manual: mariposa.html , mariposa.pdf
Vignettes: Understanding Relationships: Correlation Analysis (source, R code)
Importing and Exporting Data (source, R code)
Data Transformation (source, R code)
Descriptive Statistics and Frequencies (source, R code)
Comparing Groups and Testing Hypotheses (source, R code)
Introduction to mariposa (source, R code)
Labels and Missing Values (source, R code)
Regression Analysis (source, R code)
Scale Analysis (source, R code)
SPSS Compatibility Status (source, R code)
Working with Survey Weights (source, R code)

Downloads:

Package source: mariposa_0.7.3.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: mariposa_0.7.3.zip
macOS binaries: r-release (arm64): mariposa_0.7.3.tgz, r-oldrel (arm64): mariposa_0.7.3.tgz, r-release (x86_64): mariposa_0.7.3.tgz, r-oldrel (x86_64): mariposa_0.7.3.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mariposa to link to this page.