Skip to content

optic

1.0.1Package record

Simulation Tool for Causal Inference Using Longitudinal Data

0packages depend
2.2Kdownloads / year
59.1%test coverage
13/13flavors OK

Overview

About

Implements a simulation study to assess the strengths and weaknesses of causal inference methods for estimating policy effects using panel data. See Griffin et al. (2021) doi:10.1007/s10742-022-00284-w and Griffin et al. (2022) doi:10.1186/s12874-021-01471-y for a description of our methods.

Changes in 1.0.1
  • reduces run-time of vignettes by reducing number of replications.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 4.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK13 OK2026-05-02
Show 2 earlier changesHide 2 earlier changes
  • ERROR11 OK, 1 ERROR2026-04-25
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.0.1
READMEYes · 899 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 1.0.1Citation fileNoWebsiteYes · pkgdown
Help pages
7
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

2.2K
CRAN downloads in the past year
Rank #21,979 · ~6/day · ~186/mo
Daily download trend is not available in this view yet.
22730 days
60090 days
2.2K1 year
Compare downloads with other packages →
Also on63 r2u3 autocran

Repository

9Stars
1Forks
5Open issues
1Open PRs
13Releases
410Commits
10Commit identities
causal-inferencediff-in-difflongitudinal-datasimulation
License file reads as GPL-3.0 · 410 commits · Last activity 2026-10-12 · Default branch at 1.3.0, ahead of CRAN 1.0.1 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
613
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-01-17 · 92026-07-07 · 9
PracticesBeta

12 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/randcorporation/optic on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-10-12 · The repository has a site deploy workflow

pkgdown site last built 2026-10-12

Coverage (1)
Coverage reporting
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 3 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing optic adds 55 packages (29 with compiled code, 67 MB of source tarballs). Heaviest: BH 14 MB, stringi 11 MB, ggplot2 6.0 MB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (6)
Maintainer since 1.0.0 (2023), Author
Author, Copyright holder
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.1Latest
    record
    2023-08-08 · current release · diff ↗
  • 1.0.0
    record
    2023-05-26
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-05-26
Total releases
2 / 3 yrs
License
GPL-3 OSI
Minimum R
≥ 4.1.0
Bundled data
11 KB / 1 file
Download size
181 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("optic")
Nascimento de Lima, P., Griffin, B. A., Grimm, G., Griswold, M., Pane, J., & Scherling, A. (2023). optic: Simulation Tool for Causal Inference Using Longitudinal Data (Version 1.0.1) [Computer software]. https://doi.org/10.32614/CRAN.package.optic

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

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 optic version 1.0.1 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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