Skip to content

nof1kit

0.1.0Package record

Design, Monitor, and Analyze Single-Case (N-of-1) Intensive Longitudinal Studies

0packages depend
501downloads / year
83.9%test coverage
13/13flavors OK

Overview

About

Tools for the stages of a single-case (N-of-1) experimental study that come before analysis: generating randomization schedules that can be preregistered and reproduced exactly, under run-length constraints, exporting them for mobile data collection, validating incoming ecological momentary assessment (EMA) records, and monitoring compliance. Designed around the workflow of a 70-day randomized N-of-1 study collected with stock 'iOS' tools at 92.9% compliance; the package ships with that study's complete dataset.

Changes in 0.1.0

First release.

  • design_schedule(): exact uniform sampling of balanced, run-constrained randomization schedules by dynamic programming, reproducible from a required seed.
  • check_schedule(): design diagnostics (counts, run lengths, alternations, lag-1 autocorrelation).
  • write_schedule(): JSON export in the format read by the companion mobile collection tools.
  • sim_power(): simulation-based power and false-positive rates under AR(1) errors, analysed with and without the dependence, for both randomized and user-supplied schedules.
  • read_ema(): tidy import of EMA exports (CSV or JSON), with a study-day index derived from the start date and an error when a file's own index disagrees with the calendar.
Show all changes in 0.1.0Hide the rest of the changes in 0.1.0
  • validate_ema(): structured integrity checks, including day indices that have drifted out of step with the calendar.
  • compliance(): prompt-level compliance against response windows, with off-window records reported separately.
  • Vignette running the full lifecycle on the bundled 70-day study.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.0 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OKNow
  • OK6 OK2026-08-09
Advisories

none known

Documentation

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

Downloads

501
CRAN downloads in the past year
Rank #24,230 · ~1/day · ~42/mo
Daily download trend is not available in this view yet.
17730 days
50190 days
5011 year
Compare downloads with other packages →
Also on14 r2u2 autocran

Repository

0Stars
0Forks
0Open issues
0Open PRs
1Releases
18Commits
1Commit identities
emar-packagesingle-case-design
18 commits · Last activity 2026-09-08 · Default branch at 0.1.0.9000, ahead of CRAN 0.1.0 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
not measured
Median days to close, 50 most recently updated closed PRs
15

PRs over time

2026-08-09 · 02026-09-08 · 0
PracticesBeta

10 development-tooling and community-health practices detected across 5 families in the upstream repository

Checks run against github.com/haomeng797-ship-it/nof1kit 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

Governance and community (2)
Code of conductContributing guide
Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-09-08 · The repository has a site deploy workflow

pkgdown site last built 2026-09-08

CRAN release process (1)
cran-comments.md
Show all practicesHide 1 practice
Research and citation (2)
CITATION.cffcodemeta.json
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing nof1kit adds 1 package (1 with compiled code, 1.0 MB of source tarballs). Heaviest: jsonlite 1.0 MB.

Depends (0)
none
Imports (4)
jsonlitestatstoolsutils
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2026)
Releases (1)
  • 0.1.0Latest
    first seen 2026-08-08 · current release
  • R
    R 4.6.0 released · 2026-04-24

Package metadata

First seen
2026-08-08
Total releases
1 / 1 yrs
License
MIT + file LICENSE OSI
Download size
35 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("nof1kit")
Meng, M. (2026). nof1kit: Design, Monitor, and Analyze Single-Case (N-of-1) Intensive Longitudinal Studies (Version 0.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.nof1kit

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

The repository also keeps a CITATION.cff.

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

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