Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Statistics

labcatalog computes the statistics most papers report: reliability (Cronbach’s α, McDonald’s ω, item-rest correlations), confirmatory factor analysis and measurement invariance across waves, reporters and groups, correlations, regression, t tests (between groups and paired) and ANOVA, multilevel models, and attrition analyses. It uses established packages rather than its own formulas, and its defaults follow JASP, so its numbers match what JASP gives with its default options.

R first, Python second

When R is set up on the Settings page (see Set Up R and Language Models), the analyses on the Analysis and Methods pages and the factor models run in R. Without R, or when R fails, the same analyses run in Python, and each result says which one computed it. The descriptive statistics and reliability on the instrument pages are always computed in Python.

RPython
Reliability, correlations, regression, group comparisonspsych, effectsize, MBESSscipy, statsmodels
Correlations and regressions within studies, for datasets of several studiesstats (lm)statsmodels
Confirmatory factor analysis, ωlavaan, semToolssemopy
Measurement invariance across waves, reporters and groups, score testslavaan, semToolsnot available
Multilevel modelslme4, lmerTest, performancestatsmodels
Mediation, with up to two moderatorslavaan; modsem for latent interactionsnot available
Multiple imputation, pooled correlations, regressions and group comparisonsmice, miceaddsnot available
Multilevel models with imputed covariatesmice, mitmlnot available
Rater agreement: Cohen’s κ, intraclass correlationspsychstatsmodels (κ only)
Cross-lagged panel models (RI-CLPM, CLPM)lavaannot available

Settings that change the numbers

These settings are in labcatalog.yaml, under stats, so everyone who opens the project gets the same results:

stats:
  decimals: 2              # 1 to 4; p values keep three
  correlation: pearson     # pearson or spearman
  t_test: welch            # welch or student
  cfa_estimator: wlsmv     # wlsmv (items as ordered categories), ml or mlr (items as continuous)
  correlate_by: id         # id, the group's name, or none
  missing: available       # available (everyone with values) or impute (multiple imputation)
  imputations: 20          # imputed data sets
  seed: 1                  # the imputation's random seed

The Settings page sets these under This project and saves them here. They are where each page starts: a switch on a section of the Analysis page (the coefficient of the correlation table, the test of the group comparison) or on the factor model and invariance panels tries another for what that section shows, without changing the project, and the table notes say which was used.

Get the code

Every analysis has a Code section with R and Python code that reproduces it from the data files, and draws its chart again with ggplot2 or matplotlib where it has one. The factor models and invariance tests on the instrument pages, and the mediation models on the Analysis page, are saved as Mplus inputs as well; see Instruments and Analysis. Use them to rerun an analysis outside labcatalog, extend it, or share it with a co-author or reviewer.