{
  "_id": "6a2144c8cd65a98ecbd2b2bb",
  "Package": "SWSamp",
  "Type": "Package",
  "Title": "Computes Sample Size for a Stepped Wedge Design, using\nSimulation-Based Calculations",
  "Version": "0.3.21",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable/",
  "Authors@R": "c(\nperson(\"Gianluca\", \"Baio\",\nemail = \"g.baio@ucl.ac.uk\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-4314-2570\")),\nperson(\"Rosie\", \"Leech\",\nemail = \"\",\nrole = c(\"aut\")))",
  "Description": "Provides a suite of functions for the sample size\ncalculations and power analysis in a Stepped Wedge Trial.\nContains functions for closed-form sample size calculation\n(based on a set of specific models) and simulation-based\nprocedures that can extend the basic framework.",
  "License": "GPL-3",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.3.2.9000",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://giabaio.r-universe.dev",
  "Date/Publication": "2025-07-09 14:32:06 UTC",
  "RemoteUrl": "https://github.com/giabaio/SWSamp",
  "RemoteRef": "HEAD",
  "RemoteSha": "512449f40d7c323fbd577a486c46379592286f1f",
  "Packaged": {
    "Date": "2026-06-04 09:22:37 UTC",
    "User": "root"
  },
  "Author": "Gianluca Baio [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-4314-2570>),\nRosie Leech [aut]",
  "Maintainer": "Gianluca Baio <g.baio@ucl.ac.uk>",
  "MD5sum": "9f46759a829f3d8d5cb7bf5b4d1394d5",
  "_user": "giabaio",
  "_type": "src",
  "_file": "SWSamp_0.3.21.tar.gz",
  "_fileid": "6a96c9289daa8679707ca140afcc4db80ed98e455beadc12abf073dab4cf7786",
  "_filesize": 146061,
  "_sha256": "6a96c9289daa8679707ca140afcc4db80ed98e455beadc12abf073dab4cf7786",
  "_created": "2026-06-04T09:22:37.000Z",
  "_published": "2026-06-04T09:26:32.782Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79488755085,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407818245"
    },
    {
      "job": 79488755083,
      "time": 151,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407821080"
    },
    {
      "job": 79488755030,
      "time": 201,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407838629"
    },
    {
      "job": 79488755090,
      "time": 133,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407814542"
    },
    {
      "job": 79488234540,
      "time": 184,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407766396"
    },
    {
      "job": 79488754996,
      "time": 111,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407806937"
    },
    {
      "job": 79488755037,
      "time": 101,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407803201"
    },
    {
      "job": 79488754986,
      "time": 124,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407811729"
    },
    {
      "job": 79488755170,
      "time": 102,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407803231"
    }
  ],
  "_buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/giabaio/SWSamp",
  "_commit": {
    "id": "512449f40d7c323fbd577a486c46379592286f1f",
    "author": "Gianluca Baio <g.baio@ucl.ac.uk>",
    "committer": "Gianluca Baio <g.baio@ucl.ac.uk>",
    "message": "Add close connection to see if it checks out in windows\n",
    "time": 1752071526
  },
  "_maintainer": {
    "name": "Gianluca Baio",
    "email": "g.baio@ucl.ac.uk",
    "login": "giabaio",
    "mastodon": "@gianlubaio@mas.to",
    "orcid": "0000-0003-4314-2570",
    "twitter": "@gianlubaio",
    "description": "I'm a professor of Statistics & Health Economics and the head of department @stats-ucl. I work on Bayesian stats (with applications to @r-hta and @convoigroup)",
    "uuid": 8723145
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "lme4",
      "role": "Depends"
    },
    {
      "package": "foreach",
      "role": "Imports"
    },
    {
      "package": "doParallel",
      "role": "Imports"
    },
    {
      "package": "iterators",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    }
  ],
  "_owner": "giabaio",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-28",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 6,
  "_contributors": [
    {
      "user": "giabaio",
      "count": 45,
      "uuid": 8723145
    }
  ],
  "_userbio": {
    "uuid": 8723145,
    "type": "user",
    "name": "Gianluca Baio",
    "description": "I'm a professor of Statistics & Health Economics and the head of department @stats-ucl. I work on Bayesian stats (with applications to @r-hta and @convoigroup)"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SWSamp"
  },
  "_devurl": "https://github.com/giabaio/swsamp",
  "_searchresults": 2,
  "_rbuild": "4.6.0",
  "_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/SWSamp.html",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "cluster.search",
    "DE.woert",
    "HH.binary",
    "HH.count",
    "HH.normal",
    "make.swt",
    "sim.power",
    "sw.design.mat"
  ],
  "_help": [
    {
      "page": "cluster.search",
      "title": "Finds the optimum number of clusters or time points",
      "topics": [
        "cluster.search"
      ]
    },
    {
      "page": "DE.woert",
      "title": "Computes the Design Effect for a Stepped Wedge Trial",
      "topics": [
        "DE.woert"
      ]
    },
    {
      "page": "HH.binary",
      "title": "Power calculation for binary outcome based on analytic formula of Hussey and Hughes",
      "topics": [
        "HH.binary"
      ]
    },
    {
      "page": "HH.count",
      "title": "Power calculation for count outcome based on analytic formula of Hussey and Hughes",
      "topics": [
        "HH.count"
      ]
    },
    {
      "page": "HH.normal",
      "title": "Power calculation for normal outcome based on analytic formula of Hussey and Hughes",
      "topics": [
        "HH.normal"
      ]
    },
    {
      "page": "make.swt",
      "title": "Simulates a 'virtual' Stepped Wedge trial",
      "topics": [
        "make.swt"
      ]
    },
    {
      "page": "sim.power",
      "title": "Power calculations based on a simulation approach",
      "topics": [
        "sim.power"
      ]
    },
    {
      "page": "sw.design.mat",
      "title": "Creates a design matrix for a Stepped Wedge Trial",
      "topics": [
        "sw.design.mat"
      ]
    }
  ],
  "_readme": "https://github.com/giabaio/SWSamp/raw/HEAD/README.md",
  "_rundeps": [
    "boot",
    "codetools",
    "doParallel",
    "foreach",
    "iterators",
    "lattice",
    "lme4",
    "MASS",
    "Matrix",
    "minqa",
    "nlme",
    "nloptr",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang"
  ],
  "_score": 2.4771212547196626,
  "_indexed": true,
  "_nocasepkg": "swsamp",
  "_universes": [
    "giabaio"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.21",
      "date": "2026-06-04T09:24:45.000Z",
      "distro": "noble",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "db930af9ec2e3667c997f3387a377c518444d63e080c861d1f9e27625ed66e42",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.21",
      "date": "2026-06-04T09:24:52.000Z",
      "distro": "noble",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "88f87f635413d10d9f4078e801afea09f575ca8ad07b2bbc6b385e292c6a8faa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.21",
      "date": "2026-06-04T09:25:52.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "bd2c89e35cac9688cf0e92de7923b607013c88e565a4634c95d9e460be3b816a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.21",
      "date": "2026-06-04T09:24:37.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "1cddbf051d57111082b9469324ebe6993889920229cf79d1224f11dd72a83032",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.21",
      "date": "2026-06-04T09:24:45.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "52adeb0338a9c3622098606566969b7a9557ab44bbe3653e9364951fc33d9c3d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.21",
      "date": "2026-06-04T09:23:59.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "3813162f75db3f574abb5465a366d234bcf0978f459f4772abe1dbd78c6b2ea4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.21",
      "date": "2026-06-04T09:24:16.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "6721e4593f99b55b27c1a85e414b83f720348d17399266f9cab24a32f7485125",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.21",
      "date": "2026-06-04T09:23:58.000Z",
      "commit": "512449f40d7c323fbd577a486c46379592286f1f",
      "fileid": "7a62c1d082fae8f52cc4962f9d1d2ed7037338bd791aeefe4e77866286371cc7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/giabaio/actions/runs/26942798061"
    }
  ]
}