Produces tidy per-subject sequence indices and trajectory-level state, distribution, and transition summaries. Entropy is normalized Shannon entropy. Complexity is the geometric mean of entropy and transition rate, matching the common sequence complexity formulation. Integrative potential and negative exposure are time-weighted state proportions.
Value
A vasstra_description object with tidy indices,
trajectory_summary, mean_time, distribution, and transitions.
Examples
long <- data.frame(
id = rep(1:6, each = 3),
time = rep(1:3, 6),
state = c(
"Low", "Low", "Low", "Low", "Low", "Average",
"Average", "Average", "Average", "Average", "Average", "Low",
"High", "High", "High", "High", "High", "Average"
)
)
trajectories <- long |>
step2_sequences(id = "id", time = "time", state = "state") |>
step3_trajectories(n_trajectories = 3)
description <- step4_describe(
trajectories,
positive_states = "High",
negative_states = "Low"
)
description
#> VaSSTra Step 4: Describe Trajectories
#> 6 subjects | 3 trajectories | 3 states
