
dormancy is a novel R package for detecting and analyzing dormant patterns in multivariate data. Unlike traditional pattern detection methods that focus on currently active relationships, dormancy identifies statistical patterns that exist but remain inactive until specific trigger conditions emerge.
This is the first statistical package dedicated to dormant pattern detection. The concept is inspired by:
In data analysis, dormant patterns are relationships that:
# Install from CRAN (when available)
install.packages("dormancy")
# Install development version
# devtools::install_github("danymukesha/dormancy")
library(dormancy)
set.seed(42)
n <- 500
# Create data with a dormant pattern
x <- rnorm(n)
condition <- sample(c(0, 1), n, replace = TRUE)
# Relationship only exists when condition == 1
y <- ifelse(condition == 1,
0.8 * x + rnorm(n, 0, 0.3),
rnorm(n))
data <- data.frame(x = x, y = y, condition = factor(condition))
# Overall correlation is weak
cor(data$x, data$y) # ~0.35
# Detect the dormant pattern
result <- dormancy_detect(data, method = "conditional")
print(result)
#> Dormant pattern detected: x ~ y
#> Dormancy score: 0.72
#> Trigger: condition == 1
| Function | Description |
|----------|-------------|
| dormancy_detect() | Detect dormant patterns using 4 methods |
| dormancy_trigger() | Identify activation trigger conditions |
| dormancy_depth() | Measure how deeply dormant a pattern is |
| dormancy_risk() | Assess activation risk and potential impact |
| dormancy_scout() | Map data space for potential dormant regions |
| awaken() | Simulate what happens when patterns activate |
| hibernate() | Find patterns that have become dormant over time |
Finds patterns that are conditionally suppressed - active only under specific conditions.
Identifies patterns that emerge when variables cross specific thresholds.
Detects patterns that exist in specific phase regions of the data space.
Finds patterns that could trigger chain reactions through other variables.
Traditional correlation analysis misses dormant patterns because:
# Detect dormant correlations that could activate during market stress
result <- dormancy_detect(returns_data, method = "threshold")
risk <- dormancy_risk(result, time_horizon = 30)
# Find patterns that only emerge under certain conditions
result <- dormancy_detect(process_data, method = "conditional")
triggers <- dormancy_trigger(result)
# Identify dormant patterns signaling ecological shifts
scout <- dormancy_scout(sensor_data)
hib <- hibernate(time_series_data, time_var = "date")
# Detect latent risk factors
result <- dormancy_detect(patient_data, method = "cascade")
awakening <- awaken(result, intensity = 1)
Measures how "dormant" a pattern is (0 = active, 1 = fully dormant).
The specific circumstances under which a dormant pattern would activate.
How much change is needed to awaken the pattern:
Risk that activating one pattern triggers others.
If you use dormancy in your research, please cite:
@Manual{dormancy,
title = {dormancy: Detection and Analysis of Dormant Patterns in Data},
author = {Dany Mukesha},
year = {2026},
note = {R package version 0.1.0},
url = {https://github.com/danymukesha/dormancy}
}
MIT License. See LICENSE for details.
This package develops a novel statistical framework inspired by concepts from biology, geology, and epidemiology. The idea of dormant patterns in data analysis provides a new perspective on hidden relationships and latent risks.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.