Skip to content

blocklength

0.2.2Package record

Select an Optimal Block-Length to Bootstrap Dependent Data (Block Bootstrap)

0packages depend
7.9Kdownloads / year
94.5%test coverage
8/13flavors OK

Overview

About

A set of functions to select the optimal block-length for a dependent bootstrap (block-bootstrap). Includes the Hall, Horowitz, and Jing (1995) doi:10.1093/biomet/82.3.561 subsampling-based cross-validation method, the Politis and White (2004) doi:10.1081/ETC-120028836 Spectral Density Plug-in method, including the Patton, Politis, and White (2009) doi:10.1080/07474930802459016 correction, and the Lahiri, Furukawa, and Lee (2007) doi:10.1016/j.stamet.2006.08.002 nonparametric plug-in method, with a corresponding set of S3 plot methods.

Changes in 0.2.2

Minor Changes

  • The plot.nppi() function now returns an additional plot for JAB Pseudo Value Stability.

Bug Fixes

  • In nppi() there was an inconsistency in dimensionality between the jab_point_values and the jab_pseudo_values due to how NA values were handled. This is fixed such that both vectors will always have the same length.

From NEWS.md in the release

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  blocklength/inst/doc/tuning-parameters.R (.Tsp: 1)
'.Tsp' should be changed to 'tsp'.

CRAN check page ↗

Slowest check: 2.9 min · r-oldrel-windows-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE11 OK, 2 NOTE2026-07-16
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.2.2
READMEYes · 1,647 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.2.2Citation fileNoWebsiteYes · pkgdown
Help pages
6
Examples that run
67%4 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

7.9K
CRAN downloads in the past year
Rank #5,768 · ~22/day · ~661/mo
Daily download trend is not available in this view yet.
49630 days
1.4K90 days
7.9K1 year
Compare downloads with other packages →
Also on113 r2u29 autocran62 c2d4u

Repository

5Stars
0Forks
0Open issues
0Open PRs
6Releases
180Commits
3Commit identities
bootstraptseriesstatsrhorowitztime-seriesblock-bootstrapdepedent-bootstrap
License file reads as GPL-2.0 · 180 commits · Last activity 2026-08-24 · 0% stars, 30d · Default branch at 0.2.2.9000, ahead of CRAN 0.2.2 (checked 2026-10-18)
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
0
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-06-12 · 52026-07-07 · 5
PracticesBeta

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

Checks run against github.com/alec-stashevsky/blocklength 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-08-24 · The repository has a site deploy workflow

Coverage (1)
Coverage reporting (Codecov)
CRAN release process (1)
cran-comments.md
Show all practicesHide 2 practices
Research and citation (1)
CITATION.cff
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

Installing blocklength adds 8 packages (7 with compiled code, 3.5 MB of source tarballs). Heaviest: jsonlite 1.0 MB, curl 714 KB, zoo 675 KB.

Depends (0)
none
Imports (2)
tseriesstats
LinkingTo (0)
none
Suggests (5)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.3 (2021)
Contributor
Releases (6)

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
  • 0.2.2Latest
    record
    2025-03-08 · current release · diff ↗
  • 0.2.1
    record
    2025-03-08 · diff ↗
  • 0.2.0
    record
    2025-02-17 · diff ↗ ·
    added 1 export
    nppi
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.5
    record
    2022-03-03 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.1.4
    record
    2021-05-12 · diff ↗
  • 0.1.3
    record
    2021-02-25
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-02-25
Total releases
6 / 5 yrs
License
GPL (>= 2) OSI
Download size
226 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("blocklength")
Stashevsky, A., & Armella, S. (2025). blocklength: Select an Optimal Block-Length to Bootstrap Dependent Data (Block Bootstrap) (Version 0.2.2) [Computer software]. https://doi.org/10.32614/CRAN.package.blocklength

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 blocklength version 0.2.2 [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