Skip to content
Article

Run CB-SEM Online Without R: Explonia vs lavaan

By Andrzej Szymkowiak · October 2026

lavaan online

Andrzej Szymkowiak · Last reviewed October 2026

Explonia vs lavaan: CB-SEM fit indices checked against lavaan on shared data, no R setup.

You know your CFA model, but you do not want to install R and learn lavaan syntax to fit it. Explonia runs CB-SEM and CFA online — in the browser, without R installation or model syntax — and returns results that match lavaan to three decimal places for nearly all values on shared golden data. It also covers the full study workflow: survey building, Prolific recruitment, analysis, and APA draft output in one platform.

lavaan is one of the best tools for structural equation modeling available anywhere. It is free, open, and trusted by reviewers across disciplines. The problem is not what it does — it is what it assumes. To use lavaan, you need R installed, you need to know lavaan's model syntax, and you need to write, run, and debug code. For a researcher who is confident in methods but not in R, that barrier can cost days. Explonia runs the same analyses — CB-SEM, CFA, reliability, fit indices — in the browser, with a visual model builder, and returns results that agree with lavaan to three decimal places for nearly all values. This article compares both tools honestly, so you can choose the right approach for your study.

What lavaan is

lavaan (short for "latent variable analysis") is a free, open-source R package for structural equation modeling, created by Yves Rosseel. It supports CFA, CB-SEM, path analysis, and a wide range of estimators (ML, MLR, WLSMV, and more). Its model syntax is clean and readable, and it is the standard reference implementation for covariance-based SEM in R. Many published papers report lavaan output directly. It is powerful, transparent, and free. It also requires a working R environment, familiarity with the lavaan model language, and some tolerance for debugging.

lavaan is the right choice if you are a confident R user who needs maximum flexibility — custom constraints, exotic estimators, or models that go beyond what a visual builder can express.

What does Explonia offer for CB-SEM and CFA online?

Explonia runs CB-SEM and CFA in the browser using Pyodide — a Python execution environment that runs locally in your browser tab. Your response data is not sent to a server to be analysed; the responses you collect in Explonia are stored securely in the EU. No installation, no R, no syntax to write.

For CB-SEM and CFA, Explonia returns:

  • Factor loadings and standard errors for the measurement model.
  • Path coefficients and standard errors for the structural model.
  • Model fit indices: CFI, TLI, RMSEA (with 90% CI), SRMR, and χ² — the same set reviewers expect.
  • Estimators: ML (the default), MLM (Satorra-Bentler), MLR (robust standard errors, the Yuan-Bentler scaled χ² and robust CFI, TLI and RMSEA, like estimator = "MLR" in lavaan) and GLS; CB-SEM also offers ULS. All estimators use complete cases (listwise deletion), because FIML is not available yet.
  • Reliability: Cronbach's alpha, McDonald's omega, and composite reliability (CR).
  • Convergent validity: AVE for each factor.
  • Discriminant validity: HTMT ratios, Fornell-Larcker table, and, when bootstrapping is on in CB-SEM, bootstrap CIs for HTMT.
  • A path diagram rendered in the browser.
  • An "Article description" — a draft APA results paragraph with your actual fit indices and estimates filled in, which you then check and rewrite before using.
  • Export to SPSS/.sav, R, and AMOS, plus a codebook.

You can see which fit-index thresholds Explonia applies on the CB-SEM methods page and the CFA methods page.

How do Explonia's CB-SEM results compare to lavaan?

Explonia's analysis engine is checked against lavaan on a shared dataset covering CFA, CB-SEM, reliability, regression, and mediation. The outputs agree within a strict numerical tolerance, nearly all values to three decimal places, and every difference is shown in the table. You can inspect the full comparison table and reproduce it yourself using the published data files at /validation/.

The exact claim is that Explonia matches lavaan's results. Both tools apply the same maximum-likelihood estimator to the same data and produce the same numbers. The /validation/ page makes this verifiable rather than a marketing statement: the dataset and the R script are both published so you can run lavaan yourself and compare. The robust MLR option was also cross-checked against lavaan (MLR) on a test dataset.

The whole-study difference

lavaan is an analysis tool. It takes a dataset you already have and fits a model. You still need a separate tool to build the survey, a platform to collect responses, and possibly another tool to recruit participants. Connecting those pieces takes time and introduces opportunities for error.

Explonia covers the full cycle:

  1. Build — survey questions, scales, blocks, randomization, and attention checks.
  2. Recruit — built-in path to Prolific for paid samples when you cannot reach respondents on your own (see how to recruit participants on Prolific →).
  3. Collect — responses stored in one place, ready for analysis without any export step.
  4. Analyze — CB-SEM, CFA, PLS-SEM, reliability, regression, mediation, and EFA in the browser.
  5. Report — APA draft paragraph, and export to SPSS/.sav, R, and AMOS.

For researchers who are starting a new study, the gain is removing several manual handoff steps that are routine sources of errors — wrong variable names during export, outdated file versions, or cut-and-paste mistakes when copying numbers into a results section.

A fair note on lavaan's strengths

lavaan is more flexible than any point-and-click tool, including Explonia. You can specify custom parameter constraints, free specific covariances, use weighted least squares for ordinal data, or fit a model that has no equivalent in a visual builder. lavaan scripts are also reproducible by design: anyone with R installed can re-run your exact analysis from your script and data. That is a genuine scientific advantage. For discriminant validity decisions in your CFA or CB-SEM, see HTMT vs Fornell-Larcker →.

Explonia trades some of that scripting flexibility for speed and usability — and for the end-to-end workflow. If you need a non-standard model or an estimator Explonia does not yet expose (for example, WLSMV for ordinal data), lavaan is the right tool. For the standard CB-SEM and CFA workflow that covers the large majority of published studies, Explonia covers what you need. See how to report CFA results in APA format → for the reporting step, and how to report SEM fit indices → for what to include in your results section. If you are evaluating PLS-SEM tools as well, see Explonia vs SmartPLS →.

Comparison at a glance

lavaan (R)Explonia
SetupInstall R + lavaan packageBrowser — no install
Coding requiredYes (lavaan model syntax)No — visual model builder
CB-SEMYesYes
CFAYesYes
Fit indices (CFI, TLI, RMSEA, SRMR)YesYes
EstimatorsML, MLM, MLR, WLSMV, and moreML, MLM, MLR, GLS (and ULS in CB-SEM); no WLSMV yet
Missing data (FIML)YesNot yet (complete cases only)
HTMT, AVE, CRYes (with additional packages)Yes — built in
Export to R / lavaan syntaxYes (is the source)Yes — R export is live
Survey + recruitNo — separate tool neededYes — built in
APA results paragraphNoYes ("Article description")
CostFreeFree tier; Academic or PRO subscription

Practical guidance: which tool to use

Use lavaan if you are an R user who needs full control over the model specification, or if you need estimators or constraints that go beyond what Explonia's visual builder supports. lavaan is also the right choice if your workflow already starts in R and the rest of your pipeline lives there. If you are still deciding between the CB-SEM and PLS-SEM families themselves, see PLS-SEM vs CB-SEM: how to choose.

Use Explonia if you are starting a new study from scratch, you want the survey and analysis in one place, or you find writing lavaan syntax a barrier. Explonia is also a practical option when you need APA-formatted output or SPSS/.sav export without extra steps.

Common mistakes to avoid

  • Assuming "visual builder" means "less rigorous" — check the validation results and reproduce them with lavaan.
  • Using the "Article description" as a final text without reading every number and rewriting the interpretation in your own words.
  • Forgetting to report the estimator and software in the methods section, whatever tool you use.
  • Copying fit indices or loadings by hand from any output — a frequent source of typos a reviewer will catch.

Frequently asked questions

Do Explonia's CB-SEM and CFA results match lavaan?

Yes. On a shared test dataset covering CFA, CB-SEM, reliability, regression, and mediation, Explonia's outputs agree with lavaan to three decimal places for nearly all values, and every difference is published. The comparison is publicly available at /validation/ with the dataset and R script, so you can reproduce it.

Do I need to know R to use Explonia?

No. Explonia uses a visual model builder — you add constructs and draw paths on screen. No syntax is required. If you do know R and want to re-run your model in lavaan, Explonia's R export gives you a ready-to-run script.

Can I export R or lavaan syntax from Explonia?

Yes. R export is live. Explonia generates an R script based on your model that you can run in lavaan to reproduce the results. This is useful for sharing your analysis with a supervisor who works in R, or for archiving a reproducible script alongside your dataset.

Is Explonia free?

There is a free tier that covers all analyses — CB-SEM, CFA, PLS-SEM, reliability, regression, and mediation. The practical limit is the number of responses you collect in your study. Larger studies and team features are in paid tiers, but you are not paying per seat.

Can Explonia run CB-SEM without R?

Yes. Explonia fits CB-SEM in the browser with a visual model builder, so you do not need R or lavaan syntax. On a shared test dataset, its results match lavaan to three decimal places for nearly all values — see /validation/ to check the numbers.


How Explonia does this for you

Explonia is built for the full quantitative research workflow: build the survey, collect the data, and run CB-SEM, CFA, PLS-SEM, reliability, regression, mediation, and EFA in the browser. Results are checked against R (lavaan, psych, afex) on shared golden data, and CB-SEM uses the same maximum-likelihood estimator as AMOS — see /validation/ for the numbers. The "Article description" feature drafts an APA results paragraph with your fit indices and estimates, which you edit and keep as your own. You export clean files to SPSS/.sav, R, and AMOS. Browse worked examples or see the first TAM–CFA–SEM study walkthrough → to see a full study from survey to report. Rigor, made runnable.


Ready to run CB-SEM and CFA without installing R? Build your survey, collect data, and analyze it in one place — free to start. Start free →

How to cite this article

If this article helped your research, you can cite it (APA 7):

Szymkowiak, A. (2026). Run CB-SEM Online Without R: Explonia vs lavaan. Explonia. https://explonia.com/blog/explonia-vs-lavaan/

Last updated: October 2026

Run your whole study in one place

Design it, collect it, and run real CFA and SEM on your own data — with a draft APA paragraph you can edit. Free to start.

Start free