{
  "_id": "6aae3aec3d719c1f84079c05",
  "Package": "CRTspat",
  "Title": "Workflow for Cluster Randomised Trials with Spillover",
  "Version": "1.4.0",
  "Authors@R": "c(person(given = \"Thomas\",\nfamily = \"Smith\",\nemail = \"Thomas-a.Smith@unibas.ch\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-3650-9381\")),\nperson(given = \"Lea\",\nfamily = \"Multerer\",\nrole = \"ctb\"),\nperson(given = \"Mariah\",\nfamily = \"Silkey\",\nrole = \"ctb\"))",
  "Maintainer": "Thomas Smith <Thomas-a.Smith@unibas.ch>",
  "Description": "Design, workflow and statistical analysis of Cluster\nRandomised Trials of (health) interventions where there may be\nspillover between the arms (see\n<https://thomasasmith.github.io/index.html>).",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable/",
  "Config/testthat/edition": "2",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://thomasasmith.r-universe.dev",
  "Date/Publication": "2026-01-21 16:00:15 UTC",
  "RemoteUrl": "https://github.com/thomasasmith/crtspat",
  "RemoteRef": "HEAD",
  "RemoteSha": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-19 07:20:16 UTC",
    "User": "root"
  },
  "Author": "Thomas Smith [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-3650-9381>),\nLea Multerer [ctb],\nMariah Silkey [ctb]",
  "_user": "thomasasmith",
  "_type": "src",
  "_file": "CRTspat_1.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/3b16eb379944aa67865e82af5f5c6a9fd3f672b812297509f480f09d5e2a68f9",
  "_filesize": 1706105,
  "_sha256": "3b16eb379944aa67865e82af5f5c6a9fd3f672b812297509f480f09d5e2a68f9",
  "_expires": "2026-12-28T07:34:02.000Z",
  "_created": "2026-09-19T07:20:16.000Z",
  "_published": "2026-09-19T07:34:04.380Z",
  "_jobs": [
    {
      "job": 105860185285,
      "time": 243,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10579554745"
    },
    {
      "job": 105860185156,
      "time": 230,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10579882132"
    },
    {
      "job": 105860185311,
      "time": 209,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "10580297022"
    },
    {
      "job": 105860185182,
      "time": 429,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10579834820"
    },
    {
      "job": 105859516157,
      "time": 310,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10579609421"
    },
    {
      "job": 105860185133,
      "time": 187,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10580440145"
    },
    {
      "job": 105860185197,
      "time": 159,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "10580326495"
    },
    {
      "job": 105860185221,
      "time": 161,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "10580505015"
    },
    {
      "job": 105860185278,
      "time": 149,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "WARNING",
      "artifact": "10580086853"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119",
  "_status": "success",
  "_upstream": "https://github.com/thomasasmith/crtspat",
  "_commit": {
    "id": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
    "author": "ThomasASmith <thomas-a.smith@unibas.ch>",
    "committer": "ThomasASmith <thomas-a.smith@unibas.ch>",
    "message": "Merge remote-tracking branch 'origin/main'\n\n# Conflicts:\n#\ttests/testthat/test9.R\n",
    "time": 1769011215
  },
  "_maintainer": {
    "name": "Thomas Smith",
    "email": "thomas-a.smith@unibas.ch",
    "login": "thomasasmith",
    "description": "",
    "uuid": 9484964,
    "orcid": "0000-0002-3650-9381"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "OOR",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "spatstat.geom",
      "role": "Imports"
    },
    {
      "package": "spatstat.random",
      "role": "Imports"
    },
    {
      "package": "TSP",
      "role": "Imports"
    },
    {
      "package": "gee",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "role": "Imports"
    },
    {
      "package": "sp",
      "role": "Imports"
    },
    {
      "package": "loo",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "thomasasmith",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-04",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "thomasasmith",
      "count": 257,
      "uuid": 9484964
    }
  ],
  "_userbio": {
    "uuid": 9484964,
    "type": "user",
    "name": "ThomasASmith",
    "followers": 2
  },
  "_downloads": {
    "count": 300,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/CRTspat"
  },
  "_devurl": "https://github.com/thomasasmith/crtspat",
  "_searchresults": 40,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/CRTspat.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/thomasasmith/crtspat",
  "_realowner": "thomasasmith",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2023-10-16"
    },
    {
      "version": "1.1.0",
      "date": "2023-11-30"
    },
    {
      "version": "1.2.0",
      "date": "2024-02-12"
    },
    {
      "version": "1.3.0",
      "date": "2024-07-25"
    },
    {
      "version": "1.3.2",
      "date": "2025-01-27"
    },
    {
      "version": "1.4.0",
      "date": "2026-01-21"
    }
  ],
  "_exports": [
    "aggregateCRT",
    "anonymize_site",
    "compute_distance",
    "compute_mesh",
    "CRTanalysis",
    "CRTpower",
    "CRTsp",
    "CRTwrite",
    "latlong_as_xy",
    "plotCRT",
    "randomizeCRT",
    "readdata",
    "simulateCRT",
    "specify_buffer",
    "specify_clusters"
  ],
  "_help": [
    {
      "page": "aggregateCRT",
      "title": "Aggregate data across records with duplicated locations",
      "topics": [
        "aggregateCRT"
      ]
    },
    {
      "page": "CRTanalysis",
      "title": "Analysis of cluster randomized trial with spillover",
      "topics": [
        "CRTanalysis"
      ]
    },
    {
      "page": "CRTsp",
      "title": "Create or update a '\"CRTsp\"' object",
      "topics": [
        "CRTsp"
      ]
    },
    {
      "page": "latlong_as_xy",
      "title": "Convert lat long co-ordinates to x,y",
      "topics": [
        "latlong_as_xy"
      ]
    },
    {
      "page": "plotCRT",
      "title": "Graphical displays of the geography of a CRT",
      "topics": [
        "plotCRT"
      ]
    },
    {
      "page": "randomizeCRT",
      "title": "Randomize a two-armed cluster trial",
      "topics": [
        "randomizeCRT"
      ]
    },
    {
      "page": "readdata",
      "title": "Read example dataset",
      "topics": [
        "readdata"
      ]
    },
    {
      "page": "simulateCRT",
      "title": "Simulation of cluster randomized trial with spillover",
      "topics": [
        "simulateCRT"
      ]
    },
    {
      "page": "specify_buffer",
      "title": "Specification of buffer zone in a cluster randomized trial",
      "topics": [
        "specify_buffer"
      ]
    },
    {
      "page": "specify_clusters",
      "title": "Assign locations to clusters in a CRT",
      "topics": [
        "specify_clusters"
      ]
    },
    {
      "page": "summary.CRTanalysis",
      "title": "Summary of the results of a statistical analysis of a CRT",
      "topics": [
        "summary.CRTanalysis"
      ]
    }
  ],
  "_readme": "https://github.com/thomasasmith/crtspat/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "boot",
    "callr",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "codetools",
    "cpp11",
    "DBI",
    "deldir",
    "desc",
    "distributional",
    "dplyr",
    "e1071",
    "farver",
    "foreach",
    "gee",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "minqa",
    "nlme",
    "nloptr",
    "numDeriv",
    "OOR",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "polyclip",
    "posterior",
    "processx",
    "proxy",
    "ps",
    "purrr",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstan",
    "s2",
    "S7",
    "scales",
    "sf",
    "sp",
    "spatstat.data",
    "spatstat.geom",
    "spatstat.random",
    "spatstat.sparse",
    "spatstat.univar",
    "spatstat.utils",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensor",
    "tensorA",
    "tibble",
    "tidyr",
    "tidyselect",
    "TSP",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "Usecase4.Rmd",
      "filename": "Usecase4.html",
      "title": "Use Case 04: Estimation of optimal cluster size for a trial with pre-determined buffer width",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Conclusions"
      ],
      "created": "2023-03-21 16:46:33",
      "modified": "2026-01-20 19:58:07",
      "commits": 21
    },
    {
      "source": "Usecase5.Rmd",
      "filename": "Usecase5.html",
      "title": "Use Case 05: Analysis of trials (including methods for analysing spillover)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Statistical Methods",
        "Assessing model fit",
        "Spillover",
        "Models that do not consider spillover",
        "Spillover as a function of distance",
        "Spillover as a function of surround",
        "Geostatistical models and mapping results"
      ],
      "created": "2023-03-29 16:18:34",
      "modified": "2026-01-20 19:58:07",
      "commits": 29
    },
    {
      "source": "Usecase6.Rmd",
      "filename": "Usecase6.html",
      "title": "Use Case 06: Thematic mapping of the geography of a CRT",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Conclusions"
      ],
      "created": "2023-04-02 14:38:25",
      "modified": "2026-01-20 19:58:07",
      "commits": 23
    },
    {
      "source": "Usecase7.Rmd",
      "filename": "Usecase7.html",
      "title": "Use Case 07: Power and sample size calculations allowing for spillover",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Analysis by simulated true efficacy",
        "Analysis by simulated spillover interval"
      ],
      "created": "2023-03-29 16:18:34",
      "modified": "2025-01-26 08:44:45",
      "commits": 16
    },
    {
      "source": "Usecase8.Rmd",
      "filename": "Usecase8.html",
      "title": "Use Case 08: Eggs - to fry or scramble?",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Analysis"
      ],
      "created": "2023-05-14 19:45:33",
      "modified": "2025-01-30 18:52:49",
      "commits": 14
    },
    {
      "source": "Usecase9.Rmd",
      "filename": "Usecase9.html",
      "title": "Use Case 09: Preparation of datasets for CRTspat",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2023-04-02 14:38:25",
      "modified": "2023-10-15 18:09:14",
      "commits": 7
    },
    {
      "source": "Usecase10.Rmd",
      "filename": "Usecase10.html",
      "title": "Use Case 10: Power sample size and bias calculations using a diffusion model for spillover",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2026-01-20 14:18:08",
      "modified": "2026-01-20 14:18:08",
      "commits": 1
    }
  ],
  "_score": 5.845098040014257,
  "_indexed": true,
  "_nocasepkg": "crtspat",
  "_universes": [
    "thomasasmith"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-09-19T07:23:51.000Z",
      "distro": "resolute",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/342482b33d3df5b9e0ca4df51968e939b336a9d8f505c752ae238bb8e73d3a9e",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-09-19T07:23:47.000Z",
      "distro": "resolute",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/227bb9ffd4904ad51e94cda42617b9dfda8e16f0b0cdbe4d7927351ef36f6067",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-09-19T07:31:30.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/9c7ec117c4afc1603f3a331ad5678855d2180beaae13bdf59c330f2db6c51c89",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-09-19T07:32:11.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/e31b4743acbc9c54bc18c79cbe0713e886826b683d24702395f252c03f69bfdc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.0",
      "date": "2026-09-19T07:23:44.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/13060c4de6c7c4604936de606ea67a28bdf2c4ee4cb772df9413c3198343c78a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-09-19T07:22:07.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/37c1eb79e6962bfb4c2c6e56a607f5af6d0d7cf773790636de858bc68a1983a4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-09-19T07:22:16.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/4e03cfa49d9316c20b72785f1b1b7e964a7fe2658ea54f8353c6f55262ebff4c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-09-19T07:22:03.000Z",
      "commit": "22478b3cd130c0a9252922eaca7a5e8d2709625a",
      "fileid": "https://r2.ropensci.org/bcefaed20ebb5706a945f013dbca4fff6e1f6c054c08b5094ca2353d2390a4dd",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/thomasasmith/actions/runs/35428808119"
    }
  ]
}