About 2Rmarkdown

2Rmarkdown converts statistical software files into reproducible R Markdown reports. Upload a Stata .do file, JAMOVI .omv file, JASP .jasp file, or SPSS .sps file and get a self-contained R Markdown document with equivalent R code.

Built for meta-science and replication research, where reproducibility and transparency are essential. Each converter is backed by a standalone, open-source R package that can also be used independently from the command line or in your own R scripts.

How It Works

1

Upload

Drop your statistical software file (.do, .omv, .jasp, .sps) and optionally a data file (.dta, .sav).

2

Parse & Convert

The converter parses your syntax, translates each command to equivalent R code, and wraps it in an R Markdown document.

3

Download

Download the .Rmd file (and optionally a knitted HTML report). Original syntax is preserved as comments.

Web App vs. R Packages

This Web App

  • Hosted on Vercel + Railway
  • Drag-and-drop interface, no R installation needed
  • Batch processing for multiple files
  • Server-side conversion with full knitting to HTML
  • Soft caps of 5 conversions/day, 50/month per user

R Packages (open source)

  • Install from GitHub with devtools or remotes
  • Use in your own R scripts or pipelines
  • CRAN-ready (pass R CMD check with 0 errors, 0 warnings)
  • Full test suites with hundreds of automated tests
  • MIT licensed, contributions welcome

R Packages

stata2rmarkdown

Deterministic converter for Stata .do syntax files. Parses 53+ commands, expands macros (local, global, foreach, forvalues), handles factor variables and clustered/robust SE, and generates self-contained R Markdown reports targeting the fixest + modelsummary + tidyverse ecosystem.

R CMD check: 0 errors, 0 warnings, 0 notesGitHub
53+ Stata commands with dedicated converters95.9% command coverage across 237 real .do files715+ automated tests, all passingExact numerical match with Stata MP 19.5Validated against 10 published economics papers + Wooldridge textbook

R backend: fixest + modelsummary + tidyverse

Regression

regressreghdfearegxtregivregressivreg2

Binary / Multinomial

logitprobitlogisticologitoprobitmlogit

Other Models

tobitpoissonnbreg

Descriptive Statistics

summarizetabulatetabstatcorrelatepwcorrdescribecodebook

Hypothesis Tests

ttestonewayranksumsignrankkwallis

Data Manipulation

usegenreplaceegenmergeappendreshapecollapsedropkeeprenamesortrecodedestringtostringduplicatesxtile

Post-Estimation

predictmarginstestlincomestat

Output & Tables

eststoesttaboutreg2coefplot

Graphics

scattergraph twowaygraph combinehistogramkdensity

Labels

label variablelabel valueslabel define

SSC / Community

winsorwinsor2binscattercsdiddfullerregsavecarryforward

Key features

  • Macro expansion (local, global, foreach, forvalues)
  • Factor variables (i., c., ##) and interactions
  • Clustered and robust standard errors
  • Original Stata syntax preserved as foldable comments
  • Optional knitting to HTML with executed R code

Install

# install.packages("remotes")
remotes::install_github("giladfeldman/STATA2Rmarkdown")

jamovi2rmarkdown

Extracts data and analysis configurations from JAMOVI .omv files, reconstructs the jmv R package function calls, and generates formatted R Markdown documents with all original analyses preserved. Supports descriptives, t-tests, ANOVA, correlation, regression, reliability, factor analysis, and more.

R CMD check: 0 errors, 0 warnings, 1 noteGitHub
20+ jmv analysis functions supported315 automated tests across 13 OMV filesIncomplete analysis filtering (skips empty formulas)

R backend: jmv

T-Tests

Independent samples t-testPaired samples t-testOne-sample t-test

ANOVA

Between-subjects ANOVARepeated measures ANOVAANCOVAMANOVA

Regression

Linear regressionLogistic regressionPoisson regression

Correlation

Pearson correlationSpearman correlationKendall correlationCorrelation matrix

Descriptive Statistics

Descriptives (mean, SD, min, max, quartiles)Frequency tables

Reliability & Factor

Cronbach's alpha / OmegaFactor analysis (PCA, EFA)

Non-Parametric & Other

Chi-square / contingency tablesProportion testsBayesian ANOVAMediation analysisMixed models

Key features

  • Full data extraction from binary .omv files
  • Depth-aware formula parsing (handles complex interactions)
  • Proper variable quoting for special characters
  • Session-based file isolation for security

Install

# install.packages("remotes")
remotes::install_github("giladfeldman/jamovi2rmarkdown")

jasp2rmarkdown

Extracts data and analysis configurations from .jasp archives (ZIP files containing SQLite databases and JSON metadata), maps them to equivalent R code using 80+ function mappings across 17 JASP packages, and generates formatted R Markdown documents. Covers frequentist and Bayesian analyses.

R CMD check: 0 errors, 0 warnings, 1 noteGitHub
80+ function mappings across 17 JASP packagesTested against 137+ .jasp filesParse-only mode (avoids JASP package fragility)

R backend: jaspTools / standalone R

T-Tests (jaspTTests)

Independent samples t-testPaired samples t-testOne-sample t-testBayesian t-tests

ANOVA (jaspAnova)

ANOVARepeated measures ANOVAANCOVAMANOVABayesian ANOVA

Regression (jaspRegression)

Linear regressionLogistic regressionRegression diagnostics

Frequencies (jaspFrequencies)

Frequency tablesGoodness-of-fitContingency tables

Descriptives (jaspDescriptives)

Summary statisticsDistribution plots

Factor Analysis (jaspFactor)

EFAPCAConfirmatory factor analysis

SEM (jaspSem)

Structural equation modelingPath analysis

Meta-Analysis (jaspMetaAnalysis)

Meta-analysisForest plots

Advanced Modules

Mixed models (jaspMixedModels)Machine learning (jaspMachineLearning)Bayesian hypothesis testing (jaspBain)Reliability (jaspReliability)Circular statistics (jaspCircular)

Key features

  • Extracts from SQLite + JSON inside .jasp archives
  • Maps both frequentist and Bayesian analyses
  • Data priority: internal.sqlite > xdata.json > data.csv
  • Original JASP output preserved as benchmark

Install

# install.packages("remotes")
remotes::install_github("giladfeldman/jasp2rmarkdown")

spss2rmarkdown

Parses 30+ SPSS commands including full expression translation (17+ SPSS functions mapped to R equivalents), translates them to R code using the jmv package, and generates formatted R Markdown reports. Preserves variable labels and value labels from .sav files. Validated against GNU PSPP.

R CMD check: 0 errors, 0 warnings, 1 noteGitHub
30+ SPSS analysis commands supported17+ SPSS functions translated to R equivalents246+ automated tests, all passing73/73 statistical comparisons match GNU PSPP

R backend: jmv + tidyverse

Descriptive Statistics

DESCRIPTIVESFREQUENCIESEXAMINEMEANS

T-Tests & ANOVA

T-TEST (independent, paired, one-sample)ONEWAY (with post-hoc: Bonferroni, Tukey, Scheffe, LSD)GLM / UNIANOVAMANOVA

Correlation & Regression

CORRELATIONS (Pearson)PARTIAL CORRREGRESSION (enter, forward, backward, stepwise)LOGISTIC REGRESSIONMIXED (multilevel)

Reliability & Factor

RELIABILITY (alpha, split-half)FACTOR (PCA, EFA, rotation methods)

Non-Parametric Tests

NPAR TESTS (Mann-Whitney, Wilcoxon, Kruskal-Wallis, Friedman, sign test, binomial)

Crosstabs & Other

CROSSTABS (chi-square)ROC curvesQUICK CLUSTER (k-means)

Data Transformation

COMPUTERECODEIFSELECT IFCOUNTAGGREGATESORT CASESFILTERSPLIT FILERANK

Key features

  • Preserves variable labels and value labels from .sav
  • Expands SPSS 'TO' syntax using .sav variable order
  • Full expression translation (MISSING, ABS, MEAN, etc.)
  • APA 7 formatted output tables
  • Optional knitting to HTML with executed R code

Install

# install.packages("remotes")
remotes::install_github("giladfeldman/spss2rmarkdown")

stat2rmarkdown

Shared core utilities for all converters. Provides R Markdown document assembly, variable quoting, output directory management, and logging.

GitHub

Functions: quote_var(), generate_yaml_header(), generate_setup_chunk(), generate_session_footer(), create_output_dir(), safe_as_numeric(), log_message()

# install.packages("remotes")
remotes::install_github("giladfeldman/stat2rmarkdown")

Processing & data handling

Files are uploaded to a secure server for processing. Each format has a dedicated R conversion service that parses your statistical software files and generates reproducible R Markdown reports with full knitting to HTML. All uploaded files are deleted after processing.

Created By

Gilad Feldman — ORCID | GitHub

Built for open science, replication, and research transparency.

vc000fee