Skip to content

SelfControlledCaseSeries

Self-Controlled Case Series

v6.1.5 · May 8, 2026 · Apache License 2.0

Description

Execute the self-controlled case series (SCCS) design using observational data in the OMOP Common Data Model. Extracts all necessary data from the database and transforms it to the format required for SCCS. Age and season can be modeled using splines assuming constant hazard within calendar months. Event-dependent censoring of the observation period can be corrected for. Many exposures can be included at once (MSCCS), with regularization on all coefficients except for the exposure of interest. Includes diagnostics for all major assumptions of the SCCS.

Downloads

CRAN

653

Last 30 days

5193rd

1.6K

Last 90 days

5.1K

Last year

Trend: +6% (30d vs prior 30d)

r2u CRAN

24

Last 30 days

130

Last 90 days

466

Last year

Trend: -51% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Packages required but not available:
  'Cyclops', 'DatabaseConnector', 'Andromeda', 'ResultModelManager'

Package suggested but not available for checking: ‘Eunomia’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 24, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 17, 2026
ERROR r-release-linux-x86_64

package dependencies

Packages required but not available: 'Cyclops', 'Andromeda'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 15, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 13, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Packages required but not available: 'Cyclops', 'Andromeda'

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 27, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘SelfControlledCaseSeries/libs/SelfControlledCaseSeries.so’:
  Found non-API call to R: ‘R_UnboundValue’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    libs   3.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    libs   3.8Mb
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'MultipleAnalyses.Rmd' using rmarkdown
--- finished re-building 'MultipleAnalyses.Rmd'

--- re-building 'ResultsSchema.Rmd' using rmarkdown
--- finished re-building 'ResultsSchema.Rmd'

--- re-buildi
...[truncated]...
i.org/tinytex/r/#debugging for debugging tips. See SingleStudies.log for more info.
--- failed re-building 'SingleStudies.Rmd'

SUMMARY: processing the following file failed:
  'SingleStudies.Rmd'

Error: Vignette re-building failed.
Execution halted
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    libs   3.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  5.9Mb
  sub-directories of 1Mb or more:
    libs   3.8Mb

Code

Structure

Lines of code

16,562

Files

157

Compiled share

14.6%

Has compiled src

Yes

Language breakdown

R 7,935 (47.9%)C/C++/src 2,418 (14.6%)Tests 2,421 (14.6%)Docs 2,342 (14.1%)Vignettes 1,446 (8.7%)

API

Exported functions

69

Internal functions

68

Testing & CI

Has tests

Yes

Test-to-code ratio

0.31

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

91.3%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

33.3%

Unsafe pattern score

0

Dep constraint coverage

44.4%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1.0

System requirements

C++ standard

License

Apache License 2.0

License flags

SPDX valid, OSI approved

History

Versions

6

First release

2025-06-23

Latest release

2026-05-08

Avg cadence

50 days

Cold removal rate

Dep drift

0

LOC over versions

v6.0.0: 16,474 LOCv6.0.1: 16,497 LOCv6.1.0: 16,527 LOCv6.1.1: 16,577 LOCv6.1.4: 16,566 LOCv6.1.5: 16,562 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies Cyclops DatabaseConnector (>= 6.0.0) Andromeda SqlRender dplyr Rcpp ParallelLogger EmpiricalCalibration ggplot2 checkmate readr ResultModelManager jsonlite digest R6 SelfControlledCaseSeries

Version History

7 tracked
updated 6.1.5 ← 6.1.4 diff May 8, 2026
updated 6.1.4 ← 6.1.1 diff Mar 26, 2026
new 6.1.1 Mar 10, 2026
updated 6.1.1 ← 6.1.0 diff Oct 27, 2025
updated 6.1.0 ← 6.0.1 diff Sep 2, 2025
updated 6.0.1 ← 6.0.0 diff Jul 14, 2025
new 6.0.0 Jun 22, 2025