{
  "_id": "6a467e596ff6f2357554b5fa",
  "Package": "ptestR",
  "Title": "Permutation-Based Significance Testing for Regression Models",
  "Version": "0.1.1",
  "Authors@R": "c(person(given = \"Lucas G. S.\",\nfamily = \"França\",\nrole = c(\"aut\", \"cre\"),\nemail = \"lucas.franca@kcl.ac.uk\",\ncomment = c(ORCID = \"0000-0003-0853-1319\")),\nperson(given = \"Yan\",\nfamily = \"Ge\",\nrole = \"aut\",\nemail = \"yan.ge@kcl.ac.uk\"),\nperson(given = \"Dafnis\",\nfamily = \"Batalle\",\nrole = \"aut\",\nemail = \"dafnis.batalle@kcl.ac.uk\",\ncomment = c(ORCID = \"0000-0003-2097-979X\")))",
  "Description": "Wraps glm(), lme4::lmer(), and binomial glm() with a\npermutation loop to compute nonparametric p-values. For each\nmodel, ptestR generates a null distribution of the test\nstatistic by randomly rearranging the outcome variable, then\ncomputes p.perm as the proportion of permuted statistics at\nleast as extreme as the observed one. This approach requires\nfar fewer distributional assumptions than standard Wald or\nlikelihood-ratio tests, making it well-suited to neuroimaging,\nEEG, and other biomedical datasets with repeated measures and\nsmall samples.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/CoDe-Neuro/ptestR,\nhttps://code-neuro.github.io/ptestR",
  "BugReports": "https://github.com/CoDe-Neuro/ptestR/issues",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://code-neuro.r-universe.dev",
  "Date/Publication": "2026-05-31 13:24:36 UTC",
  "RemoteUrl": "https://github.com/CoDe-Neuro/ptestR",
  "RemoteRef": "v0.1.0",
  "RemoteSha": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-02 15:02:22 UTC",
    "User": "root"
  },
  "Author": "Lucas G. S. França [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0853-1319>),\nYan Ge [aut],\nDafnis Batalle [aut] (ORCID: <https://orcid.org/0000-0003-2097-979X>)",
  "Maintainer": "Lucas G. S. França <lucas.franca@kcl.ac.uk>",
  "MD5sum": "801f86f75408fd5b517c58117f59a030",
  "_user": "code-neuro",
  "_type": "src",
  "_file": "ptestR_0.1.1.tar.gz",
  "_fileid": "eb06beef41bccf945d92006a65148b6e7be5844234f99ce7c5c1787db7a068ac",
  "_filesize": 179053,
  "_sha256": "eb06beef41bccf945d92006a65148b6e7be5844234f99ce7c5c1787db7a068ac",
  "_created": "2026-07-02T15:02:22.000Z",
  "_published": "2026-07-02T15:06:01.688Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84805932741,
      "time": 169,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8042996951"
    },
    {
      "job": 84805932746,
      "time": 183,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8043003354"
    },
    {
      "job": 84805932736,
      "time": 156,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8042984222"
    },
    {
      "job": 84805932747,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8042979372"
    },
    {
      "job": 84804700478,
      "time": 304,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8042916953"
    },
    {
      "job": 84805932712,
      "time": 164,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8042994795"
    },
    {
      "job": 84805932867,
      "time": 126,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8042977185"
    },
    {
      "job": 84805932759,
      "time": 111,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8042970284"
    },
    {
      "job": 84805932738,
      "time": 143,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8042984781"
    }
  ],
  "_buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/CoDe-Neuro/ptestR",
  "_commit": {
    "id": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
    "author": "lucasfr <lucas.franca@northumbria.ac.uk>",
    "committer": "lucasfr <lucas.franca@northumbria.ac.uk>",
    "message": "🐛 fix: rewrite grouped-analysis vignette with valid lmer simulation\n",
    "time": 1780233876
  },
  "_maintainer": {
    "name": "Lucas G. S. França",
    "email": "lucas.franca@kcl.ac.uk",
    "login": "lucasfr",
    "description": "Immigrant, physicist, neuroscientist, open source and data science enthusiast.",
    "uuid": 502265,
    "orcid": "0000-0003-0853-1319"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "broom",
      "role": "Imports"
    },
    {
      "package": "broom.mixed",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "modelr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lmerTest",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "code-neuro",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-13",
      "n": 2
    },
    {
      "week": "2026-22",
      "n": 9
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-05-31"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "lucasfr",
      "count": 23,
      "uuid": 502265
    },
    {
      "user": "kiragy",
      "count": 4,
      "uuid": 77888659
    }
  ],
  "_userbio": {
    "uuid": 65711167,
    "type": "organization",
    "name": "CoDe-Neuro",
    "followers": 7
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/ptestR"
  },
  "_devurl": "https://github.com/code-neuro/ptestr",
  "_pkgdown": "https://code-neuro.github.io/ptestR",
  "_searchresults": 5,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/ptestR.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "grouped_perm_binoglm",
    "grouped_perm_glm",
    "grouped_perm_glmm"
  ],
  "_help": [
    {
      "page": "grouped_perm_binoglm",
      "title": "Permutation test for binomial logistic regression",
      "topics": [
        "grouped_perm_binoglm"
      ]
    },
    {
      "page": "grouped_perm_glm",
      "title": "Permutation test for generalised linear models",
      "topics": [
        "grouped_perm_glm"
      ]
    },
    {
      "page": "grouped_perm_glmm",
      "title": "Permutation test for linear mixed-effects models",
      "topics": [
        "grouped_perm_glmm"
      ]
    }
  ],
  "_pkglogo": "https://github.com/CoDe-Neuro/ptestR/raw/v0.1.0/man/figures/logo.svg",
  "_readme": "https://github.com/CoDe-Neuro/ptestR/raw/v0.1.0/README.md",
  "_rundeps": [
    "backports",
    "boot",
    "broom",
    "broom.mixed",
    "cli",
    "coda",
    "codetools",
    "cpp11",
    "digest",
    "dplyr",
    "forcats",
    "furrr",
    "future",
    "generics",
    "globals",
    "glue",
    "lattice",
    "lifecycle",
    "listenv",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "parallelly",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with ptestR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why permutation tests?",
        "The three functions",
        "A simple example",
        "Interpreting p.perm",
        "The family argument",
        "Binomial logistic regression",
        "Reproducibility",
        "Multiple comparisons",
        "Further reading"
      ],
      "created": "2026-05-31 13:20:24",
      "modified": "2026-05-31 13:20:24",
      "commits": 1
    },
    {
      "source": "grouped-analysis.Rmd",
      "filename": "grouped-analysis.html",
      "title": "Grouped analysis across features",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-05-31 13:20:24",
      "modified": "2026-05-31 13:24:36",
      "commits": 2
    },
    {
      "source": "mixed-effects-models.Rmd",
      "filename": "mixed-effects-models.html",
      "title": "Permutation tests for mixed-effects models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-05-31 13:20:24",
      "modified": "2026-05-31 13:20:24",
      "commits": 1
    }
  ],
  "_score": 3.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "ptestr",
  "_universes": [
    "code-neuro",
    "lucasfr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T15:04:43.000Z",
      "distro": "resolute",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "4d8ed78587bef4b3439b04e38c98294f4b9543550a2ec42c0c6268114113e810",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.1",
      "date": "2026-07-02T15:04:52.000Z",
      "distro": "resolute",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "325dc42e8cb82da9ad513f9f0abb4a2637af2f41fd732e9444ece1ab938391fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T15:04:29.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "09daa2b9d8ddfe0ac040dd45ae0e8b185662b78f57121e616f259c6159009beb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.1",
      "date": "2026-07-02T15:04:20.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "010c743f20f5be8b3c72477527358594b6d5871eeb1bb64b450eeebeb8ac44df",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.1",
      "date": "2026-07-02T15:05:22.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "539ffd2a52cc050d2c2303bff1118cd5d782f02463751bd8715b123426666c64",
      "status": "success",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T15:03:49.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "871d8381aee07645d93ec5703ef7618935bd05221652263f0cbe0655d602f11c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T15:03:34.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "8893019dd705d3eb62acf524066e4818e96ed912df5273ca9767568246d94e11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.1",
      "date": "2026-07-02T15:04:00.000Z",
      "commit": "af7815cbc60aa39f3af6bac8576e0e86d79331b1",
      "fileid": "2d71890e4c46196315b5c4cecbb2264f733ce178c11fe6753c4e6e7a82fab3a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/code-neuro/actions/runs/28599770803"
    }
  ]
}