fa_multilevel() — exploratory factor analysis for repeated-measures data, fitted as a mixed model with glmmTMB. Grouping variables given in random (e.g., ~ (1 | Participant)) get item-specific random intercepts, and a single set of within-level loadings is returned, together with factor scores that can be passed to resample_timeseries(). With random = NULL, it reproduces a standard maximum-likelihood EFA. Passing several values to nfactors (e.g., 1:4) fits and compares the solutions (AIC, BIC, BIC weights, variance explained), returning the best one (lowest BIC) and all the others.
New vignette: Dimension Reduction with Multilevel Factor Analysis.
experdyn 0.1.0
New features
resample_timeseries() — converts irregularly sampled ESM/EMA time series to a regular grid using natural cubic spline interpolation. Automatically detects and splits on large temporal gaps (e.g., overnight breaks) before interpolating.