The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

PITS: Power of Interrupted Time Series (ITS) Studies

Provides tools for estimating the statistical power of Interrupted Time Series (ITS) designs, with a focus on healthcare applications. The package supports prospective power calculations before a study begins, and retrospective assessments of whether a completed study was adequately powered. It includes functions to estimate nuisance parameters (baseline, residual standard deviation, autocorrelation) from data observed before the intervention, and to estimate power via Monte Carlo simulation for single-site and multi-site designs. Utility functions for design optimisation sweeps and publication- ready plots are also provided.

Version: 0.1.0
Depends: R (≥ 4.0.0)
Imports: nlme, stats, graphics, grDevices, utils
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-06-30
DOI: 10.32614/CRAN.package.PITS (may not be active yet)
Author: David de Lorenzo ORCID iD [aut, cre] (affiliation: UCL Great Ormond Street Institute of Child Health, London, UK; Neotree, London, UK (https://neotree.org/))
Maintainer: David de Lorenzo <drdaviddelorenzo at gmail.com>
BugReports: https://github.com/drdaviddelorenzo/PITS/issues
License: MIT + file LICENSE
URL: https://github.com/drdaviddelorenzo/PITS
NeedsCompilation: no
Language: en-GB
Citation: PITS citation info
Materials: README, NEWS
CRAN checks: PITS results

Documentation:

Reference manual: PITS.html , PITS.pdf
Vignettes: PITS: Power of an ITS — CDSS/CFR worked example (source, R code)
Estimating ITS parameters from pre-intervention data (source, R code)

Downloads:

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

Linking:

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

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.