tidyILD

Tidyverse-native toolkit for intensive longitudinal data (ILD).

Install

remotes::install_github("alitovchenko/tidyILD")

Quick start

library(tidyILD)

# Prepare: validate time structure, add .ild_* columns and metadata
d <- data.frame(
  id = rep(1:3, each = 5),
  time = rep(as.POSIXct(0:4 * 3600, origin = "1970-01-01"), 3),
  mood = rnorm(15)
)
x <- ild_prepare(d, id = "id", time = "time", gap_threshold = 7200)

# Inspect
ild_summary(x)

# Within-between decomposition
x <- ild_center(x, mood)

# Spacing-aware lags
x <- ild_lag(x, mood, mode = "gap_aware", max_gap = 7200)

Pipeline

Vignettes

License

MIT.