{
  "_id": "6a614c231fed6d528131edb3",
  "Package": "simr",
  "Type": "Package",
  "Title": "Power Analysis for Generalised Linear Mixed Models by Simulation",
  "Description": "Calculate power for generalised linear mixed models, using\nsimulation. Designed to work with models fit using the 'lme4'\npackage. Described in Green and MacLeod, 2016\n<doi:10.1111/2041-210X.12504>.",
  "Version": "1.0.9-2",
  "Authors@R": "c(\nperson(\"Peter\", \"Green\", role=c(\"aut\", \"cre\"), email=\"simr.peter@gmail.com\",\ncomment=c(ORCID=\"0000-0002-0238-9852\")),\nperson(\"Catriona\", \"MacLeod\", role=\"aut\"),\nperson(\"Phillip\", \"Alday\", role=\"ctb\"))",
  "URL": "https://github.com/pitakakariki/simr",
  "BugReports": "https://github.com/pitakakariki/simr/issues",
  "License": "GPL (>=2)",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://pitakakariki.r-universe.dev",
  "Date/Publication": "2026-07-22 22:03:41 UTC",
  "RemoteUrl": "https://github.com/pitakakariki/simr",
  "RemoteRef": "HEAD",
  "RemoteSha": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-22 22:58:50 UTC",
    "User": "root"
  },
  "Author": "Peter Green [aut, cre] (ORCID: <https://orcid.org/0000-0002-0238-9852>),\nCatriona MacLeod [aut],\nPhillip Alday [ctb]",
  "Maintainer": "Peter Green <simr.peter@gmail.com>",
  "_user": "pitakakariki",
  "_type": "src",
  "_file": "simr_1.0.9-2.tar.gz",
  "_fileid": "https://r2.ropensci.org/221cdee5bfdb4a08b19945d16b0c61a712f4a0e04ec0637285ce90df73a169ce",
  "_filesize": 175306,
  "_sha256": "221cdee5bfdb4a08b19945d16b0c61a712f4a0e04ec0637285ce90df73a169ce",
  "_expires": "2026-10-30T23:02:58.000Z",
  "_created": "2026-07-22T22:58:50.000Z",
  "_published": "2026-07-22T23:02:59.741Z",
  "_jobs": [
    {
      "job": 89073497241,
      "time": 185,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8547425055"
    },
    {
      "job": 89073497172,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8547422993"
    },
    {
      "job": 89073497182,
      "time": 186,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8547419895"
    },
    {
      "job": 89073497184,
      "time": 151,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8547404563"
    },
    {
      "job": 89072764850,
      "time": 263,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8547360047"
    },
    {
      "job": 89073497273,
      "time": 135,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8547406887"
    },
    {
      "job": 89073497235,
      "time": 134,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8547406332"
    },
    {
      "job": 89073497203,
      "time": 147,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8547411019"
    },
    {
      "job": 89073497214,
      "time": 122,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8547402979"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196",
  "_status": "success",
  "_upstream": "https://github.com/pitakakariki/simr",
  "_commit": {
    "id": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
    "author": "Peter Green <peter@tadorna.co.nz>",
    "committer": "Peter Green <peter@tadorna.co.nz>",
    "message": "Fix parameter length bug for https://github.com/lme4/lme4/issues/989\n",
    "time": 1784757821
  },
  "_maintainer": {
    "name": "Peter Green",
    "email": "simr.peter@gmail.com",
    "login": "pitakakariki",
    "description": "",
    "uuid": 1023705,
    "orcid": "0000-0002-0238-9852"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "lme4",
      "version": ">= 1.1-16",
      "role": "Depends"
    },
    {
      "package": "binom",
      "role": "Imports"
    },
    {
      "package": "car",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "iterators",
      "role": "Imports"
    },
    {
      "package": "lmerTest",
      "version": ">= 3.0-0",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "pbkrtest",
      "role": "Imports"
    },
    {
      "package": "plotrix",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "reformulas",
      "role": "Imports"
    },
    {
      "package": "RLRsim",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "pitakakariki",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-33",
      "n": 9
    },
    {
      "week": "2025-34",
      "n": 2
    },
    {
      "week": "2026-05",
      "n": 2
    },
    {
      "week": "2026-13",
      "n": 7
    },
    {
      "week": "2026-28",
      "n": 3
    },
    {
      "week": "2026-30",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "1.0.8",
      "date": "2025-08-18"
    },
    {
      "name": "1.0.9",
      "date": "2026-03-29"
    }
  ],
  "_stars": 79,
  "_contributors": [
    {
      "user": "pitakakariki",
      "count": 299,
      "uuid": 1023705
    },
    {
      "user": "palday",
      "count": 19,
      "uuid": 1677783
    },
    {
      "user": "pablobernabeu",
      "count": 2,
      "uuid": 20436359
    },
    {
      "user": "petergreensimrtest",
      "count": 2,
      "uuid": 64519094
    },
    {
      "user": "tobiasrebholz",
      "count": 1,
      "uuid": 65647359
    }
  ],
  "_userbio": {
    "uuid": 1023705,
    "type": "user",
    "name": "Peter Green",
    "followers": 17
  },
  "_downloads": {
    "count": 3458,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/simr"
  },
  "_mentions": 46,
  "_devurl": "https://github.com/pitakakariki/simr",
  "_searchresults": 1038,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/simr.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/pitakakariki/simr",
  "_realowner": "pitakakariki",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2015-11-01"
    },
    {
      "version": "1.0.1",
      "date": "2016-01-16"
    },
    {
      "version": "1.0.2",
      "date": "2016-11-19"
    },
    {
      "version": "1.0.3",
      "date": "2017-09-29"
    },
    {
      "version": "1.0.4",
      "date": "2018-04-30"
    },
    {
      "version": "1.0.5",
      "date": "2019-01-29"
    },
    {
      "version": "1.0.6",
      "date": "2022-03-08"
    },
    {
      "version": "1.0.7",
      "date": "2023-04-13"
    },
    {
      "version": "1.0.8",
      "date": "2025-08-18"
    },
    {
      "version": "1.0.9",
      "date": "2026-03-29"
    }
  ],
  "_exports": [
    "coef<-",
    "compare",
    "doFit",
    "doSim",
    "doTest",
    "extend",
    "fcompare",
    "fixed",
    "fixef<-",
    "getData",
    "getData<-",
    "getSimrOption",
    "lastResult",
    "makeGlmer",
    "makeLmer",
    "powerCurve",
    "powerSim",
    "random",
    "rcompare",
    "scale<-",
    "sigma<-",
    "simrOptions",
    "VarCorr<-"
  ],
  "_datasets": [
    {
      "name": "simdata",
      "title": "Example dataset.",
      "object": "simdata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "y",
        "x",
        "g",
        "z"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "simr-package",
      "title": "simr: Simulation-based power calculations for mixed models.",
      "topics": [
        "simr-package",
        "simr"
      ]
    },
    {
      "page": "doFit",
      "title": "Fit model to a new response.",
      "topics": [
        "doFit"
      ]
    },
    {
      "page": "doSim",
      "title": "Generate simulated response variables.",
      "topics": [
        "doSim"
      ]
    },
    {
      "page": "doTest",
      "title": "Apply a hypothesis test to a fitted model.",
      "topics": [
        "doTest"
      ]
    },
    {
      "page": "extend",
      "title": "Extend a longitudinal model.",
      "topics": [
        "extend"
      ]
    },
    {
      "page": "getData",
      "title": "Get an object's data.",
      "topics": [
        "getData",
        "getData<-"
      ]
    },
    {
      "page": "lastResult",
      "title": "Recover an unsaved simulation",
      "topics": [
        "lastResult"
      ]
    },
    {
      "page": "makeGlmer",
      "title": "Create an artificial mixed model object",
      "topics": [
        "makeGlmer",
        "makeLmer"
      ]
    },
    {
      "page": "modify",
      "title": "Modifying model parameters.",
      "topics": [
        "coef<-",
        "fixef<-",
        "modify",
        "scale<-",
        "sigma<-",
        "VarCorr<-"
      ]
    },
    {
      "page": "powerCurve",
      "title": "Estimate power at a range of sample sizes.",
      "topics": [
        "powerCurve"
      ]
    },
    {
      "page": "powerSim",
      "title": "Estimate power by simulation.",
      "topics": [
        "powerSim"
      ]
    },
    {
      "page": "print.powerSim",
      "title": "Report simulation results",
      "topics": [
        "confint.powerCurve",
        "confint.powerSim",
        "print.powerCurve",
        "print.powerSim",
        "summary.powerCurve",
        "summary.powerSim"
      ]
    },
    {
      "page": "simdata",
      "title": "Example dataset.",
      "topics": [
        "simdata"
      ]
    },
    {
      "page": "simrOptions",
      "title": "Options Settings for 'simr'",
      "topics": [
        "getSimrOption",
        "simrOptions"
      ]
    },
    {
      "page": "tests",
      "title": "Specify a statistical test to apply",
      "topics": [
        "compare",
        "fcompare",
        "fixed",
        "random",
        "rcompare",
        "tests"
      ]
    }
  ],
  "_readme": "https://github.com/pitakakariki/simr/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "binom",
    "boot",
    "broom",
    "car",
    "carData",
    "cli",
    "colorspace",
    "cowplot",
    "cpp11",
    "Deriv",
    "doBy",
    "dplyr",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "iterators",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "lmerTest",
    "lmtest",
    "magrittr",
    "MASS",
    "Matrix",
    "MatrixModels",
    "mgcv",
    "minqa",
    "modelr",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plotrix",
    "plyr",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "RLRsim",
    "S7",
    "scales",
    "SparseM",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "fromscratch.Rmd",
      "filename": "fromscratch.html",
      "title": "Power analysis from scratch",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Covariates and parameters",
        "Build a model object",
        "Start the power analysis"
      ],
      "created": "2015-07-05 23:57:31",
      "modified": "2018-04-02 00:30:13",
      "commits": 9
    },
    {
      "source": "examples.Rmd",
      "filename": "examples.html",
      "title": "Test examples",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Binomial GLMM with a categorical predictor",
        "Models with interaction or quadratic terms",
        "Cake",
        "Budworms",
        "Single random effects",
        "Multiple random effects",
        "A note about errors during simulation"
      ],
      "created": "2015-01-27 03:24:52",
      "modified": "2015-12-14 03:29:43",
      "commits": 10
    }
  ],
  "_score": 11.309981930172054,
  "_indexed": true,
  "_nocasepkg": "simr",
  "_universes": [
    "pitakakariki"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:01:27.000Z",
      "distro": "resolute",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/f16843f89fdc1122bfa9ba644ff63c80f057a662cdef756a4a854febde5c43c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:01:26.000Z",
      "distro": "resolute",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/a1bdcaf4b7a81472d958ab71c7d7957a1968c8a17e743bdc9422b279f15e40f3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:01:23.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/f274c540107f443982f24d310e7e4d9ea798e0461f1586138805a61688fd9b2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:00:46.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/2aa72c51197bbcee5be5ea5992190f98141f0453eaaf3ecaeab57f60fe6db30f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:01:26.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/26b9f78104626f2ffa4415f2a880ac200138db33d8ccc694cc8bb1039a267235",
      "status": "success",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:00:16.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/6f33b7a09f1ab4c474d934102f89906af29f1db8da4d7d06c33092404b1e33f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:00:33.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/fae5fbff1f7c21e2b656f636269b1b692dea745f0e31675bed9303ec17199e0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.9-2",
      "date": "2026-07-22T23:00:11.000Z",
      "commit": "e6f7ff3af9e594bd4269225e5eeaac661be8be1f",
      "fileid": "https://r2.ropensci.org/ccc6ac1c9c7e597a4d9a5c1ac81c135aa4e6cea58ea89219e868dc02a041ce33",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/pitakakariki/actions/runs/29964444196"
    }
  ]
}