Skip to content

changepointGA

0.1.5

Changepoint Detection via Modified Genetic Algorithms

2packages depend
5.4Kdownloads / year
68.2%test coverage
13/13checks pass

Overview

About
Maintained by Mo LiFirst published 2025-02-175 releasesCRAN page ↗GitHub ↗

The Genetic Algorithm (GA) is used to perform changepoint analysis in time series data. The package also includes an extended island version of GA, as described in Lu, Lund, and Lee (2010, doi:10.1214/09-AOAS289). By mimicking the principles of natural selection and evolution, GA provides a powerful stochastic search technique for solving combinatorial optimization problems. In 'changepointGA', each chromosome represents a changepoint configuration, including the number and locations of changepoints, hyperparameters, and model parameters. The package employs genetic operators—selection, crossover, and mutation—to iteratively improve solutions based on the given fitness (objective) function. Key features of 'changepointGA' include encoding changepoint configurations in an integer format, enabling dynamic and simultaneous estimation of model hyperparameters, changepoint configurations, and associated parameters. The detailed algorithmic implementation can be found in the package vignettes and in the paper of Li (2024, doi:10.48550/arXiv.2410.15571).

Install

Health

CRAN checks
13OK
Slowest check: 11.8 min · r-devel-windows-x86_64
Code health
Yes
Tests · ratio 0.16
68.2%
Coverage · measured lines
100%
Documentation · exports
7
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-06-16
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-15
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-04-22
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 2 earlier snapshots
  • ERROR2026-04-18
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 256 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
67%
Documented parameters
100%
Return-value docs
100%
References docs
5%

Downloads

5.4K
CRAN downloads in the past year
Rank #6,148 · ~15/day · ~446/mo
Daily download trend is not available in this view yet.
25930 days
1.3K90 days
5.4K1 year
Compare downloads with other packages →
Also on539 r2u32 autocran

Repository

Repository
0Stars
0Forks
0Open issues
0Open PRs
0Releases
Last activity 2026-06-03

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/mli171/changepointga on 2026-08-23.

CRAN release process (1)
CRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.3.0
Imports (7)
methodsforeachdoParallelRcppcluestatsutils
LinkingTo (2)
Enhances (0)
none
Reverse dependencies
2direct
0indirect

Code & Tests

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author · added in 0.1.1
Package Timeline

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

  • 0.1.5Latest
    2026-05-18 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.4
    2026-03-28 · diff ↗
  • 0.1.3
    2025-09-28 · diff ↗
  • 0.1.1
    2025-05-22 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.1.0
    2025-02-17
  • R
    R 4.4.0 released · 2024-04-24

Package metadata

First published
2025-02-17
Total releases
5 / 1 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.3.0
Download size
207 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("changepointGA")
Li, M., & Lu, Q. (2026). changepointGA: Changepoint Detection via Modified Genetic Algorithms (Version 0.1.5) [Computer software]. https://doi.org/10.32614/CRAN.package.changepointGA

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 changepointGA version 0.1.5 [Data set]. HJJB, LLC. Data release v2026-08-24. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-24, 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