Package: VaSSTra 0.4.0

Mohammed Saqr

VaSSTra: Simple Variables to States to Sequences to Trajectories

A small, pipe-friendly implementation of the VaSSTra workflow for longitudinal multivariate data. It provides explicit steps to turn variables into states, states into aligned sequences, and sequences into trajectory groups, followed by tidy trajectory descriptions. A single call runs the complete analysis with transparent, overridable automation of data roles and cluster counts, and an evaluation verb compares the fitted clustering against its alternatives. 'Nestimate' provides the default sequence-clustering backend and all sequence plots. No 'TraMineR' dependency is required.

Authors:Mohammed Saqr [aut, cre, cph], Sonsoles López-Pernas [aut]

VaSSTra_0.4.0.tar.gz
VaSSTra_0.4.0.zip(r-4.7-any)VaSSTra_0.4.0.zip(r-4.6-any)VaSSTra_0.4.0.zip(r-4.5-any)
VaSSTra_0.4.0.tgz(r-4.6-any)VaSSTra_0.4.0.tgz(r-4.5-any)
VaSSTra_0.4.0.tar.gz(r-4.7-any)VaSSTra_0.4.0.tar.gz(r-4.6-any)
VaSSTra_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
VaSSTra/json (API)

# Install 'VaSSTra' in R:
install.packages('VaSSTra', repos = c('https://mohsaqr.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sonsoleslp/vasstra/issues

Pkgdown/docs site:https://sonsoles.me

Datasets:

On CRAN:

Conda:

3.78 score 18 exports 32 dependencies

Last updated from:04490e7199. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK171
source / vignettesOK274
linux-releaseOK170
macos-releaseOK146
macos-oldrelOK138
windows-develOK110
windows-releaseOK145
windows-oldrelOK131
wasm-releaseOK112

Exports:evaluatefit_indicesfit_state_choicefit_trajectory_choiceflow_plotlaunch_appset_labelsstate_choicesstate_descriptivesstep1_statesstep2_sequencesstep3_trajectoriesstep4_describetrajectory_choicestransition_centralitytransition_plottransition_tablevasstra

Dependencies:brglm2cliclustercpp11data.tableenrichwithfarverggplot2gluegtableidiographicisobandlabelinglatticelifecycleMASSMatrixmclustNestimatenleqslvnnetnumDerivpsychnetsR6RColorBrewerrlangS7scalesstatmodvctrsviridisLitewithr

Flow Plots
1. Why flows need their own view | 2. Aggregated flows: the alluvial | 3. Individual flows: one line per student | 4. Flows inside a single trajectory | 5. Controlling colour, bundling, and layout | 6. The transition network: movement collapsed over time | Sequences and network side by side | Where flow plots fit

Last update: 2026-08-25
Started: 2026-07-24

Getting started with VaSSTra
Using your own data | One call | Evaluate the clustering | Tidy fit indices | Name groups after inspecting them | The same analysis in four explicit steps | State plots | Sequence and trajectory plots | Compare candidates in full detail

Last update: 2026-08-25
Started: 2026-07-24

VaSSTra Tutorial: Variables, States, Sequences, Trajectories
1. The complete analysis in one call | 2. Choosing and defending the number of states | 3. Understanding what the states are | 4. Sequences: how states unfold over time | 5. Trajectories: groups of similar journeys | 6. Describing what the trajectories mean | 7. Relabeling without refitting | 8. Full control: explicit steps and grid comparisons

Last update: 2026-08-25
Started: 2026-07-24

Readme and manuals

Help Manual

Help pageTopics
Convert a VaSSTra Analysis to a Tidy Tableas.data.frame.vasstra
Longitudinal Student Engagementengagement
Evaluate a Fitted Clusteringevaluate evaluate.vasstra evaluate.vasstra_states evaluate.vasstra_trajectories
Tidy Fit Indices for a Fitted Clusteringfit_indices fit_indices.vasstra fit_indices.vasstra_states fit_indices.vasstra_trajectories
Fit One State Choicefit_state_choice
Fit One Trajectory Choicefit_trajectory_choice
Plot State Flows Between Consecutive Time Pointsflow_plot flow_plot.vasstra flow_plot.vasstra_sequences flow_plot.vasstra_trajectories
Launch the Interactive VaSSTra Applaunch_app
Plot a Complete VaSSTra Analysisplot.vasstra
Plot a Clustering Evaluationplot.vasstra_evaluation
Plot the Evaluations of a Complete Fitplot.vasstra_evaluations
Plot VaSSTra State Sequences with Nestimateplot.vasstra_sequences
Plot State-Clustering Choicesplot.vasstra_state_choices
Plot Estimated VaSSTra Statesplot.vasstra_states
Plot VaSSTra Trajectories with Nestimateplot.vasstra_trajectories
Plot Trajectory-Clustering Choicesplot.vasstra_trajectory_choices
Relabel Fitted States or Trajectoriesset_labels set_labels.vasstra set_labels.vasstra_states set_labels.vasstra_trajectories
Compare Choices for the Number and Method of Statesstate_choices
Descriptive Statistics per Statestate_descriptives state_descriptives.vasstra state_descriptives.vasstra_states
Step 1: Turn Variables into Statesstep1_states
Step 2: Turn States into Sequencesstep2_sequences
Step 3: Turn Sequences into Trajectoriesstep3_trajectories
Step 4: Describe the Trajectoriesstep4_describe
Compare Choices for the Number and Method of Trajectoriestrajectory_choices
State Transition Network Centralitiestransition_centrality transition_centrality.vasstra transition_centrality.vasstra_sequences transition_centrality.vasstra_trajectories
Plot the State Transition Networktransition_plot transition_plot.vasstra transition_plot.vasstra_sequences transition_plot.vasstra_trajectories
State Transition Tabletransition_table transition_table.vasstra transition_table.vasstra_sequences transition_table.vasstra_trajectories
Run the Complete VaSSTra Workflowvasstra