Code
import os
import warnings
from jaxcmr.analyses.lagrank import plot_lagrank
from jaxcmr.helpers import find_project_root, generate_trial_mask, load_data, save_figure
warnings.filterwarnings("ignore")Condense temporal organization into a single scalar per subject.
The temporal factor score measures temporal organization by computing, for each transition, the percentile rank of the actual absolute lag among all available absolute lags. A score of 0.5 indicates chance; scores above 0.5 reflect a temporal contiguity effect. Unlike Lag-CRP curves, the temporal factor produces a single per-subject scalar that can be tested against chance with a one-sample \(t\)-test.
The plot shows a distribution of per-subject temporal factor scores.
data_path — path to an HDF5 file containing a RecallDataset.figure_dir — directory for saving figures.figure_str — base filename for the saved figure. Leave empty to display without saving.trial_query — a Python expression evaluated against the dataset to select trials.size — maximum number of study positions a single item can occupy (1 for no-repeat lists).