Skip to content

CausalImpact

1.4.1

Inferring Causal Effects using Bayesian Structural Time-Series Models

3packages depend
79Kdownloads / year
98.6%test coverage
13/13checks pass

Overview

About
Maintained by Alain HauserFirst published 2017-04-1010 releasesCRAN page ↗

Implements a Bayesian approach to causal impact estimation in time series, as described in Brodersen et al. (2015) DOI:10.1214/14-AOAS788. See the package documentation on GitHub https://google.github.io/CausalImpact/ to get started.

Install

Health

CRAN checks
13OK
Slowest check: 4.1 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.89
98.6%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 286 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
50%
Documented parameters
100%
Return-value docs
50%
References docs
0%

Downloads

79K
CRAN downloads in the past year
Rank #1,923 · ~216/day · ~6.6K/mo
Daily download trend is not available in this view yet.
2.7K30 days
11.8K90 days
79K1 year
Compare downloads with other packages →
Also on831 r2u21 autocran7K conda_forge295 c2d4u

Repository

Repository
1,851Stars
264Forks
26Open issues
5Open PRs
0Releases
92Commits
13Contributors
License Apache-2.0 · 92 commits · Last activity 2026-03-31 · +0.3% stars, 30d

Stars over time

2025-08-11 · 1,7412026-08-06 · 1,851

Repository practices

Upstream repositoryBeta

1 development-tooling and community-health practice detected across 1 family in the upstream repository

Checks run against github.com/google/causalimpact on 2026-08-09.

Continuous integration (1)
GitHub Actions
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
3direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Listed in earlier versions (1)
no longer listed · 1.4.1
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.4.1Latest
    2025-09-27 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.3.0
    2022-11-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.2.7
    2021-06-07 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.2.6
    2021-02-23 · diff ↗
  • 1.2.5
    2021-01-05 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.2.4
    2020-01-09 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 1.2.3
    2017-09-15 · diff ↗
Show 5 earlier events
  • 1.2.2
    2017-09-14 · diff ↗
  • 1.2.1
    2017-05-31 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.0
    2017-04-10
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2017-04-10
Total releases
10 / 9 yrs
License
Apache License 2.0 | file LICENSE OSI
Download size
380 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("CausalImpact")
Hauser, A., & Brodersen, K. H. (2025). CausalImpact: Inferring Causal Effects using Bayesian Structural Time-Series Models (Version 1.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.CausalImpact

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CausalImpact version 1.4.1 [Data set]. HJJB, LLC. Data release v2026-08-15. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-15, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy