Package: lmmresample 0.1.0

Ricardo Martínez-Flores

lmmresample: Resampling Inference for Mixed Models of Densely Sampled Time Series

Permutation and bootstrap inference for linear and linear mixed-effects models fitted to block-structured repeated measurements, such as densely sampled physiological time series (pupillometry, eye movements, EEG, fNIRS, heart rate, electrodermal activity, electromyography) or features extracted from them per trial or per participant. Resampling operates on whole trials or participants, so dependence within blocks is preserved. Provides permutation tests under user-declared exchangeability, simulation-based calibration of the permutation null, family-wise error control with the max-t procedure, pairwise comparisons between factor levels, bootstrap confidence intervals (expanded percentile for few clusters, percentile, bias-corrected and accelerated, and basic) and leave-one-subject-out diagnostics.

Authors:Ricardo Martínez-Flores [aut, cre], Hans Supèr [aut]

lmmresample_0.1.0.tar.gz
lmmresample_0.1.0.zip(r-4.7-any)lmmresample_0.1.0.zip(r-4.6-any)
lmmresample_0.1.0.tar.gz(r-4.7-any)lmmresample_0.1.0.tar.gz(r-4.6-any)
lmmresample_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
lmmresample/json (API)

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

Bug tracker:https://github.com/ricardo-martinez-flores/lmmresample/issues

On CRAN:

Conda:

3.18 score 15 exports 22 dependencies

Last updated from:b9e094e22b. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK164
source / vignettesOK220
linux-releaseOK195
windows-develOK181
windows-releaseOK183
wasm-releaseOK95

Exports:boot_cidiag_acfdiag_agreementdiag_losodiag_timecourseexch_freeexch_signflipexch_withinperm_calibrateperm_maxtperm_pairwiseperm_specperm_testsim_blockstidy

Dependencies:bootclicodetoolsfuturefuture.applygenericsglobalslatticelistenvlme4MASSMatrixminqanlmenloptrparallellyrbibutilsRcppRcppEigenRdpackreformulasrlang

Families of tests and pairwise comparisons
Several features from the same trials | Pairwise comparisons between levels of a factor | Pairwise comparisons of time courses

Last update: 2026-11-19
Started: 2026-11-19

Getting started with lmmresample
Example data | Why Wald tests can mislead | A permutation test on the same model | Bootstrap confidence intervals | Adjusting for covariates | Diagnostics | Checking the test for your design | Reporting

Last update: 2026-11-19
Started: 2026-11-19

Time courses
Example data | The model | Is the time course described adequately? | How strong is the autocorrelation? | Testing the condition × time interaction | Checking validity on your own data | Confidence intervals for the time course | Group × condition × time | Practical notes

Last update: 2026-11-19
Started: 2026-11-19

Readme and manuals

Help Manual

Help pageTopics
Bootstrap confidence intervals for fixed effectsboot_ci
Confidence intervals from a bootstrapconfint.lmmr_boot
Autocorrelation of residuals within seriesdiag_acf
Agreement between the model coefficient and participant-level differencesdiag_agreement
Leave-one-cluster-out influencediag_loso
Residual time courses by conditiondiag_timecourse
Declare exchangeability for permutation testsexchange exch_free exch_signflip exch_within
Calibrate a permutation test by simulationperm_calibrate
Family-wise permutation tests (max-t and min-p)perm_maxt
Pairwise comparisons between the levels of a factorperm_pairwise
Specify one test for a family of permutation testsperm_spec
Permutation test for a model termperm_test
Plot a residual autocorrelation diagnosticplot.lmmr_acf
Plot an agreement diagnosticplot.lmmr_agreement
Plot a bootstrapplot.lmmr_boot
Plot a calibrationplot.lmmr_calib
Plot a leave-one-cluster-out diagnosticplot.lmmr_loso
Plot family-wise permutation testsplot.lmmr_maxt
Plot a permutation testplot.lmmr_perm
Plot a residual time-course diagnosticplot.lmmr_timecourse
Simulate block-structured repeated measurementssim_blocks
Tidy a residual autocorrelation diagnostictidy.lmmr_acf
Tidy an agreement diagnostictidy.lmmr_agreement
Tidy a bootstraptidy.lmmr_boot
Tidy a calibrationtidy.lmmr_calib
Tidy a leave-one-cluster-out diagnostictidy.lmmr_loso
Tidy family-wise permutation teststidy.lmmr_maxt
Tidy pairwise permutation teststidy.lmmr_pairwise
Tidy a permutation testtidy.lmmr_perm
Tidy a residual time-course diagnostictidy.lmmr_timecourse