Package: specr 1.1.0

Philipp K. Masur

specr: Conducting and Visualizing Specification Curve Analyses

Provides utilities for conducting specification curve analyses (Simonsohn, Simmons & Nelson, 2020, <doi:10.1038/s41562-020-0912-z>) or multiverse analyses (Steegen, Tuerlinckx, Gelman & Vanpaemel, 2016, <doi:10.1177/1745691616658637>) including functions to setup, run, evaluate, and plot all specifications, as well as to conduct inference on the specification curve based on resampling under the null.

Authors:Philipp K. Masur [aut, cre], Michael Scharkow [aut]

specr_1.1.0.tar.gz
specr_1.1.0.zip(r-4.7-any)specr_1.1.0.zip(r-4.6-any)specr_1.1.0.zip(r-4.5-any)
specr_1.1.0.tgz(r-4.6-any)specr_1.1.0.tgz(r-4.5-any)
specr_1.1.0.tar.gz(r-4.7-any)specr_1.1.0.tar.gz(r-4.6-any)
specr_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
specr/json (API)

# Install 'specr' in R:
install.packages('specr', repos = c('https://masurp.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/masurp/specr/issues

Pkgdown/docs site:https://masurp.github.io

Datasets:

On CRAN:

Conda:

multiversespecification-curve

8.08 score 73 stars 182 scripts 426 downloads 1 mentions 17 exports 69 dependencies

Last updated from:5f327d4cad. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK300
source / vignettesOK390
linux-releaseOK237
macos-releaseOK154
macos-oldrelOK147
windows-develOK195
windows-releaseOK184
windows-oldrelOK152
wasm-releaseOK137

Exports:%>%as_tibbleicc_specsinfer_curveplot_choicesplot_curveplot_decisiontreeplot_gridplot_samplesizesplot_specsplot_summaryplot_variancerun_specssetupsetup_specsspecrsummarise_specs

Dependencies:backportsbase64encbootbroomcachemclicodetoolscowplotcpp11digestdplyrfarverfastmapfurrrfuturegenericsggforceggplot2ggraphggrepelglobalsgluegraphlayoutsgridExtragtableigraphisobandjsonlitelabelinglatticelifecyclelistenvlme4magrittrMASSMatrixmemoiseminqanlmenloptrparallellypillarpkgconfigpolyclippurrrR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7scalesstringistringrsystemfontstibbletidygraphtidyrtidyselecttweenrutf8vctrsviridisviridisLitewithr

Inference with specification curve analysis
How it works | Preparations | Loading packages and data | Setup specifications and run the specification curve analysis | Refit the models under-the-null | Run the resampling procedure | Summarize findings | Plot inference curve | For comparison: no effect in any specification | A note on earlier development versions | References

Last update: 2026-10-14
Started: 2024-05-22

An introduction to specr
Understanding the data | Defining analytical choices | Fit models across specifications | Investigating the specification curve | Visualizing results | Decomposing the variance in the specification curve

Last update: 2026-10-14
Started: 2023-01-17

Incorporating Bayesian Statistics
Setting up custom functions | Estimating the models | Inspecting specific models | Plotting posterior distributions for all specifications

Last update: 2026-10-14
Started: 2023-01-17

Incorporating multilevel models
Simply adding a random effect structure | Defining customized multilevel functions | Setting up specifications | Fit the models

Last update: 2026-10-14
Started: 2023-01-17

Incorporating structural equation models
Preparations | Preparing the data set | Understanding lavaan syntax and output | Specification curve analysis with latent variables | Defining the customized sem model function | Run the specification curve analysis with additional parameters | Additional insights from "lavaan" objects

Last update: 2026-10-14
Started: 2023-01-17

Investigating specific specifications
Setup specifications with a specific extract function | Identify model(s) of interest | Investigate models | Some more examples

Last update: 2026-10-14
Started: 2023-01-16

Setting up different types of specifications
Different independent and dependent variables | Simply providing different variable as vectors | Specific variable/model combinations | Adding composite and latent variables | Control variables | Adding a bunch of control variables | Sets of covariates | Dealing with duplicates in specifications | Subset analyses | Simple subset analysis based on grouping variables | More complex analysis using the subsets functionality | Other types of models | Weighted regression | Survival models | Fixed effects models | Multilevel models with p-values

Last update: 2026-10-14
Started: 2023-01-16

Using parallelization
Simple parallelization without custom functions | Parallelization with custom functions from different packages

Last update: 2026-10-14
Started: 2023-01-16

Visualizing specification curve analyses
Specification curve analysis | Setting up specifications | Fitting the models | Investigating the results | Visualizations | Comprehensive standard visualization | More advanced customization | Plot curve and choices separately | Include sample size histogram | Alternative way to visualize specification results

Last update: 2026-10-14
Started: 2019-12-13