{
  "_id": "6ae50b98327abcdf86868e63",
  "Package": "steppedwedge",
  "Type": "Package",
  "Title": "Analyze Data from Stepped Wedge Cluster Randomized Trials",
  "Version": "1.1.0",
  "Authors@R": "c(\nperson(\"Avi\", \"Kenny\", email = \"avi.kenny@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\")),\nperson(\"David\", \"Arthur\", email = \"david.arthur291@duke.edu\", role = \"aut\"),\nperson(\"Yongdong\", \"Ouyang\", email = \"yongdong.ouyang@sickkids.ca\",\nrole = \"aut\"))",
  "Description": "Provide various functions and tools to help fit models for\nestimating treatment effects in stepped wedge cluster\nrandomized trials. Implements methods described in Kenny,\nVoldal, Xia, and Heagerty (2022) \"Analysis of stepped wedge\ncluster randomized trials in the presence of a time-varying\ntreatment effect\", <doi:10.1002/sim.9511>.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "URL": "https://avi-kenny.github.io/steppedwedge/,\nhttps://github.com/Avi-Kenny/steppedwedge",
  "BugReports": "https://github.com/Avi-Kenny/steppedwedge/issues",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Config/pak/sysreqs": "cmake make libicu-dev",
  "Repository": "https://avi-kenny.r-universe.dev",
  "Date/Publication": "2026-10-30 17:13:11 UTC",
  "RemoteUrl": "https://github.com/avi-kenny/steppedwedge",
  "RemoteRef": "HEAD",
  "RemoteSha": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-30 21:10:06 UTC",
    "User": "root"
  },
  "Author": "Avi Kenny [aut, cre, cph],\nDavid Arthur [aut],\nYongdong Ouyang [aut]",
  "Maintainer": "Avi Kenny <avi.kenny@gmail.com>",
  "_user": "avi-kenny",
  "_type": "src",
  "_file": "steppedwedge_1.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/5d5a0a6c71914922fa4c7bc250286b7e00afa909e9919943022ff830394b8e1d",
  "_filesize": 1460188,
  "_sha256": "5d5a0a6c71914922fa4c7bc250286b7e00afa909e9919943022ff830394b8e1d",
  "_expires": "2027-02-07T21:26:45.000Z",
  "_created": "2026-10-30T21:10:06.000Z",
  "_published": "2026-10-30T21:26:47.708Z",
  "_upstream": "https://github.com/avi-kenny/steppedwedge",
  "_status": "success",
  "_maintainer": {
    "name": "Avi Kenny",
    "email": "avi.kenny@gmail.com",
    "login": "avi-kenny",
    "description": "Assistant Professor, Biostatistics & Bioinformatics, Duke University",
    "uuid": 8585517
  },
  "_jobs": [
    {
      "job": 124314818680,
      "time": 183,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13013140191"
    },
    {
      "job": 124314818660,
      "time": 185,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13011882774"
    },
    {
      "job": 124314818520,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13012562210"
    },
    {
      "job": 124314818579,
      "time": 164,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13013051851"
    },
    {
      "job": 124313215756,
      "time": 211,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13012496174"
    },
    {
      "job": 124314818401,
      "time": 99,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13012301412"
    },
    {
      "job": 124314818805,
      "time": 174,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13012381809"
    },
    {
      "job": 124314818875,
      "time": 184,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13012491382"
    },
    {
      "job": 124314818686,
      "time": 172,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13011588528"
    }
  ],
  "_buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196",
  "_commit": {
    "id": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
    "author": "Avi Kenny <avi.kenny@gmail.com>",
    "committer": "Avi Kenny <avi.kenny@gmail.com>",
    "message": "Doc updates\n",
    "time": 1793380391
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.10",
      "role": "Imports"
    },
    {
      "package": "stats",
      "version": ">= 4.0.0",
      "role": "Imports"
    },
    {
      "package": "forcats",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "version": ">= 1.5.1",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 2.0.3",
      "role": "Imports"
    },
    {
      "package": "methods",
      "version": ">= 3.6.2",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "version": ">= 3.5.1",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "version": ">= 2.0.0",
      "role": "Imports"
    },
    {
      "package": "geepack",
      "version": ">= 1.3.12",
      "role": "Imports"
    },
    {
      "package": "performance",
      "version": ">= 0.12.4",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "version": ">= 1.7.1",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "version": ">= 7.3.61",
      "role": "Imports"
    },
    {
      "package": "expm",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "avi-kenny",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-45",
      "n": 4
    },
    {
      "week": "2025-46",
      "n": 5
    },
    {
      "week": "2025-47",
      "n": 5
    },
    {
      "week": "2025-49",
      "n": 6
    },
    {
      "week": "2025-50",
      "n": 6
    },
    {
      "week": "2026-02",
      "n": 4
    },
    {
      "week": "2026-03",
      "n": 3
    },
    {
      "week": "2026-05",
      "n": 5
    },
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-12",
      "n": 2
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 8
    },
    {
      "week": "2026-27",
      "n": 3
    },
    {
      "week": "2026-32",
      "n": 1
    },
    {
      "week": "2026-33",
      "n": 1
    },
    {
      "week": "2026-43",
      "n": 1
    },
    {
      "week": "2026-44",
      "n": 12
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "davidearthur",
      "count": 173,
      "uuid": 84535945
    },
    {
      "user": "avi-kenny",
      "count": 108,
      "uuid": 8585517
    }
  ],
  "_userbio": {
    "uuid": 8585517,
    "type": "user",
    "name": "Avi Kenny",
    "followers": 11,
    "description": "Assistant Professor, Biostatistics & Bioinformatics, Duke University"
  },
  "_downloads": {
    "count": 214,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/steppedwedge"
  },
  "_devurl": "https://github.com/avi-kenny/steppedwedge",
  "_pkgdown": "https://avi-kenny.github.io/steppedwedge/",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/steppedwedge.html"
  ],
  "_homeurl": "https://github.com/avi-kenny/steppedwedge",
  "_realowner": "avi-kenny",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-02-21"
    }
  ],
  "_exports": [
    "analyze",
    "as_table",
    "load_data",
    "params",
    "plot_clusters",
    "plot_design",
    "plot_effect_curves"
  ],
  "_datasets": [
    {
      "name": "sw_data_example",
      "title": "Example stepped wedge data",
      "object": "sw_data_example",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cluster",
        "period",
        "trt",
        "outcome_bin",
        "outcome_cont"
      ],
      "rows": 2011,
      "table": true,
      "tojson": true
    },
    {
      "name": "sw_data_example_binom",
      "title": "Example stepped wedge data with aggregrated outcomes",
      "object": "sw_data_example_binom",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cluster",
        "period",
        "trt",
        "denominator",
        "numerator"
      ],
      "rows": 90,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "analyze",
      "title": "Analyze a stepped wedge dataset",
      "topics": [
        "analyze"
      ]
    },
    {
      "page": "as_table",
      "title": "Create table of estimates",
      "topics": [
        "as_table"
      ]
    },
    {
      "page": "load_data",
      "title": "Load and format data object",
      "topics": [
        "load_data"
      ]
    },
    {
      "page": "params",
      "title": "Set advanced parameters for analysis of data from stepped wedge trials",
      "topics": [
        "params"
      ]
    },
    {
      "page": "plot_clusters",
      "title": "Plot observed and predicted outcomes by cluster over time",
      "topics": [
        "plot_clusters"
      ]
    },
    {
      "page": "plot_design",
      "title": "Plot stepped wedge design",
      "topics": [
        "plot_design"
      ]
    },
    {
      "page": "plot_effect_curves",
      "title": "Plot effect estimates by exposure time for one or more models.",
      "topics": [
        "plot_effect_curves"
      ]
    },
    {
      "page": "sw_data_example",
      "title": "Example stepped wedge data",
      "topics": [
        "sw_data_example"
      ]
    },
    {
      "page": "sw_data_example_binom",
      "title": "Example stepped wedge data with aggregrated outcomes",
      "topics": [
        "sw_data_example_binom"
      ]
    }
  ],
  "_pkglogo": "https://github.com/avi-kenny/steppedwedge/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/avi-kenny/steppedwedge/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "bayestestR",
    "boot",
    "broom",
    "cli",
    "cpp11",
    "datawizard",
    "dplyr",
    "expm",
    "farver",
    "forcats",
    "geepack",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "insight",
    "isoband",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "minqa",
    "nlme",
    "nloptr",
    "performance",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "steppedwedge.Rmd",
      "filename": "steppedwedge.html",
      "title": "Basic package workflow",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Loading data",
        "Plotting the design",
        "Analyzing the data",
        "Binary outcome",
        "Continuous outcome",
        "Binomial outcome",
        "Plotting effect curves",
        "Plotting cluster charts"
      ],
      "created": "2024-10-07 13:51:57",
      "modified": "2026-06-05 15:47:56",
      "commits": 28
    }
  ],
  "_score": 5.4065401804339555,
  "_indexed": true,
  "_nocasepkg": "steppedwedge",
  "_universes": [
    "avi-kenny"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-10-30T21:12:31.000Z",
      "distro": "resolute",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/b90fa75d7f3b4a7bbac6674d698523fd4749e71834005acd4fc49e3c129cfb76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.0",
      "date": "2026-10-30T21:12:19.000Z",
      "distro": "resolute",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/c03081db0f52ae988dcd5f99020600204cd0f33498d64fe95c2fadac142a2c48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-10-30T21:19:49.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/e9cb3397d1fc1740d12cf85afde36f8cd1cf70eb3fb1577a7d55b253482a3b06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.0",
      "date": "2026-10-30T21:23:37.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/c4fbaaf599ed55882e71a2108657b2a6172b9e27bf14a425410e94534f5e2559",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.0",
      "date": "2026-10-30T21:12:07.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/415f42032d058c254382e9675f0eee570a1eb66a42b03ca5ca4bc573f5a89935",
      "status": "success",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-30T21:11:26.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/7bee0847a166085cb7b4b3b4d25a28cd2d9e8d8eb3f20ebdd6d7c8a9c72d6a32",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-30T21:11:38.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/fb60e4f9633301b12dfd2ab4da88e47b6c16ff711f700edb97e9575cd34cd4ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.0",
      "date": "2026-10-30T21:11:27.000Z",
      "commit": "0562e6ce3e9e094ec663c0dd62986e218b38c30d",
      "fileid": "https://r2.ropensci.org/97113f08ef5b97448a9404e52bc4f8d8a0bcf1556090ad52445697109e2a9b50",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/avi-kenny/actions/runs/41128504196"
    }
  ]
}