Package: ptestR 0.1.1

Lucas G. S. França

ptestR: Permutation-Based Significance Testing for Regression Models

Wraps glm(), lme4::lmer(), and binomial glm() with a permutation loop to compute nonparametric p-values. For each model, ptestR generates a null distribution of the test statistic by randomly rearranging the outcome variable, then computes p.perm as the proportion of permuted statistics at least as extreme as the observed one. This approach requires far fewer distributional assumptions than standard Wald or likelihood-ratio tests, making it well-suited to neuroimaging, EEG, and other biomedical datasets with repeated measures and small samples.

Authors:Lucas G. S. França [aut, cre], Yan Ge [aut], Dafnis Batalle [aut]

ptestR_0.1.1.tar.gz
ptestR_0.1.1.zip(r-4.7)ptestR_0.1.1.zip(r-4.6)ptestR_0.1.1.zip(r-4.5)
ptestR_0.1.1.tgz(r-4.6-any)ptestR_0.1.1.tgz(r-4.5-any)
ptestR_0.1.1.tar.gz(r-4.7-any)ptestR_0.1.1.tar.gz(r-4.6-any)
ptestR_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
ptestR/json (API)

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

Bug tracker:https://github.com/code-neuro/ptestr/issues

Pkgdown/docs site:https://code-neuro.github.io

On CRAN:

Conda:

3.48 score 5 scripts 3 exports 46 dependencies

Last updated from:af7815cbc6 (on v0.1.0). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK169
source / vignettesOK304
linux-release-x86_64OK183
macos-release-arm64OK146
macos-oldrel-arm64OK156
windows-develOK126
windows-releaseOK143
windows-oldrelOK111
wasm-releaseOK164

Exports:grouped_perm_binoglmgrouped_perm_glmgrouped_perm_glmm

Dependencies:backportsbootbroombroom.mixedclicodacodetoolscpp11digestdplyrforcatsfurrrfuturegenericsglobalsgluelatticelifecyclelistenvlme4magrittrMASSMatrixminqamodelrnlmenloptrparallellypillarpkgconfigpurrrR6rbibutilsRcppRcppEigenRdpackreformulasrlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Grouped analysis across features
The real use case | Simulated dataset | Running across features with grouped_perm_glmm() | Filtering to a term of interest | FDR correction | Handling p.perm = 0 | Plotting the results | Using grouped_perm_glm() instead | Tips for large-scale analyses | Further reading

Last update: 2026-05-31
Started: 2026-05-31

Getting started with ptestR
Why permutation tests? | The three functions | A simple example | Interpreting p.perm | The family argument | Binomial logistic regression | Reproducibility | Multiple comparisons | Further reading

Last update: 2026-05-31
Started: 2026-05-31

Permutation tests for mixed-effects models
Why lmer doesn't give p-values | When to use grouped_perm_glmm() | A worked example | Comparing to lme4 output directly | Random effects structure | Random slopes | Convergence warnings | Computational cost | Further reading

Last update: 2026-05-31
Started: 2026-05-31