{
  "_id": "6ad5bac17f75c4fbd3a1e303",
  "Package": "scanstatistics",
  "Type": "Package",
  "Title": "Space-Time Anomaly Detection using Scan Statistics",
  "Description": "Detection of anomalous space-time clusters using the scan\nstatistics methodology. Focuses on prospective surveillance of\ndata streams, scanning for clusters with ongoing anomalies.\nHypothesis testing is made possible by Monte Carlo simulation.\nAllévius (2018) <doi:10.21105/joss.00515>.",
  "Version": "1.1.1",
  "Date": "2023-01-25",
  "Authors@R": "c(\nperson(\"Benjamin\", \"Allévius\", email = \"benjak@math.su.se\", role = \"aut\"),\nperson(\"Paul\", \"Romer Present\", email = \"paul.romerpresent@fastmail.fm\", role = c(\"ctb\", \"cre\"))\n)",
  "Encoding": "UTF-8",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/promerpr/scanstatistics",
  "BugReports": "https://github.com/promerpr/scanstatistics/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.2.1",
  "ByteCompile": "true",
  "SystemRequirements": "C++11",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://promerpr.r-universe.dev",
  "Date/Publication": "2023-01-26 22:59:50 UTC",
  "RemoteUrl": "https://github.com/promerpr/scanstatistics",
  "RemoteRef": "HEAD",
  "RemoteSha": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-17 10:59:15 UTC",
    "User": "root"
  },
  "Author": "Benjamin Allévius [aut],\nPaul Romer Present [ctb, cre]",
  "Maintainer": "Paul Romer Present <paul.romerpresent@fastmail.fm>",
  "_user": "promerpr",
  "_type": "src",
  "_file": "scanstatistics_1.1.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/22b5306c295734e9725bb2a5b30f68a4f124d04cdbb6accea978cca3e3ac25b6",
  "_filesize": 656069,
  "_sha256": "22b5306c295734e9725bb2a5b30f68a4f124d04cdbb6accea978cca3e3ac25b6",
  "_expires": "2027-01-25T11:09:35.000Z",
  "_created": "2026-10-17T10:59:15.000Z",
  "_published": "2026-10-19T06:37:53.821Z",
  "_buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117921810728,
      "time": 198,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12099380335"
    },
    {
      "job": 117921810466,
      "time": 213,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12098562821"
    },
    {
      "job": 117921810703,
      "time": 186,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12099240665"
    },
    {
      "job": 117921810459,
      "time": 237,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12098977798"
    },
    {
      "job": 117921808697,
      "time": 123,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 117921808795,
      "time": 246,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 117921810633,
      "time": 190,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12098938012"
    },
    {
      "job": 117921809992,
      "time": 486,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12099013106"
    },
    {
      "job": 117921809714,
      "time": 259,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12099026814"
    },
    {
      "job": 117921810498,
      "time": 149,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12099121233"
    },
    {
      "job": 117921810569,
      "time": 425,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12099027530"
    },
    {
      "job": 117921810153,
      "time": 243,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "12098338517"
    },
    {
      "job": 117921808797,
      "time": 53,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 117921810724,
      "time": 392,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12099131656"
    },
    {
      "job": 117921810824,
      "time": 186,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "12097849900"
    }
  ],
  "_upstream": "https://github.com/promerpr/scanstatistics",
  "_commit": {
    "id": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
    "author": "promerpr <69762060+promerpr@users.noreply.github.com>",
    "committer": "promerpr <69762060+promerpr@users.noreply.github.com>",
    "message": "Update cran-comments.md\n",
    "time": 1674773990
  },
  "_maintainer": {
    "name": "Paul Romer Present",
    "email": "paul.romerpresent@fastmail.fm"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.4",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ismev",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "sets",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    },
    {
      "package": "doParallel",
      "role": "Suggests"
    },
    {
      "package": "foreach",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "pscl",
      "role": "Suggests"
    },
    {
      "package": "reshape2",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sp",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "gamlss.dist",
      "role": "Suggests"
    }
  ],
  "_owner": "promerpr",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "benjamin-allevius",
      "count": 33,
      "uuid": 110539459
    },
    {
      "user": "promerpr",
      "count": 27,
      "uuid": 69762060
    },
    {
      "user": "sustatstudent",
      "count": 23,
      "uuid": 35339722
    },
    {
      "user": "benjak",
      "count": 4,
      "uuid": 173093587
    }
  ],
  "_userbio": {
    "uuid": 69762060,
    "type": "user",
    "name": "Paul RP",
    "followers": 0
  },
  "_downloads": {
    "count": 522,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scanstatistics"
  },
  "_devurl": "https://github.com/promerpr/scanstatistics",
  "_searchresults": 51,
  "_topics": [
    "cpp"
  ],
  "_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/scanstatistics.html"
  ],
  "_homeurl": "https://github.com/promerpr/scanstatistics",
  "_realowner": "promerpr",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2016-09-29"
    },
    {
      "version": "1.0.0",
      "date": "2017-09-07"
    },
    {
      "version": "1.0.1",
      "date": "2018-01-24"
    },
    {
      "version": "1.1.0",
      "date": "2022-10-28"
    },
    {
      "version": "1.1.1",
      "date": "2023-01-26"
    },
    {
      "version": "1.1.2",
      "date": "2025-10-16"
    }
  ],
  "_exports": [
    "coords_to_knn",
    "df_to_matrix",
    "dist_to_knn",
    "flexible_zones",
    "get_zero_indices",
    "get_zone",
    "gumbel_pvalue",
    "knn_zones",
    "mc_pvalue",
    "scan_bayes_negbin",
    "scan_bayes_negbin_cpp",
    "scan_eb_negbin",
    "scan_eb_negbin_cpp",
    "scan_eb_poisson",
    "scan_eb_poisson_cpp",
    "scan_eb_zip",
    "scan_eb_zip_cpp",
    "scan_pb_perm_cpp",
    "scan_pb_poisson",
    "scan_pb_poisson_cpp",
    "scan_permutation",
    "score_locations",
    "top_clusters"
  ],
  "_datasets": [
    {
      "name": "NM_geo",
      "title": "Longitude and latitude of New Mexico county seats.",
      "object": "NM_geo",
      "class": [
        "data.frame"
      ],
      "fields": [
        "county",
        "seat",
        "area(km2)",
        "seat_long",
        "seat_lat",
        "center_long",
        "center_lat"
      ],
      "rows": 33,
      "table": true,
      "tojson": true
    },
    {
      "name": "NM_map",
      "title": "Data to plot the counties of New Mexico.",
      "object": "NM_map",
      "class": [
        "data.frame"
      ],
      "fields": [
        "long",
        "lat",
        "group",
        "order",
        "region",
        "subregion",
        "county"
      ],
      "rows": 867,
      "table": true,
      "tojson": true
    },
    {
      "name": "NM_popcas",
      "title": "Population and brain cancer cases in New Mexico counties during 1973-1991.",
      "object": "NM_popcas",
      "class": [
        "data.frame"
      ],
      "fields": [
        "year",
        "county",
        "population",
        "count"
      ],
      "rows": 608,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "coords_to_knn",
      "title": "Get the k nearest neighbors for each location, given its coordinates.",
      "topics": [
        "coords_to_knn"
      ]
    },
    {
      "page": "df_to_matrix",
      "title": "Convert a long data frame to a wide matrix.",
      "topics": [
        "df_to_matrix"
      ]
    },
    {
      "page": "dist_to_knn",
      "title": "Given a distance matrix, find the k nearest neighbors.",
      "topics": [
        "dist_to_knn"
      ]
    },
    {
      "page": "flexible_zones",
      "title": "Computes the flexibly shaped zones as in Tango (2005).",
      "topics": [
        "flexible_zones"
      ]
    },
    {
      "page": "get_zone",
      "title": "Extract a zone from the set of all zones.",
      "topics": [
        "get_zone"
      ]
    },
    {
      "page": "gumbel_pvalue",
      "title": "Calculate the Gumbel p-value for a scan statistic.",
      "topics": [
        "gumbel_pvalue"
      ]
    },
    {
      "page": "knn_zones",
      "title": "Find the increasing subsets of k nearest neighbors for all locations.",
      "topics": [
        "knn_zones"
      ]
    },
    {
      "page": "mc_pvalue",
      "title": "Calculate the Monte Carlo p-value for a scan statistic.",
      "topics": [
        "mc_pvalue"
      ]
    },
    {
      "page": "NM_geo",
      "title": "Longitude and latitude of New Mexico county seats.",
      "topics": [
        "NM_geo"
      ]
    },
    {
      "page": "NM_map",
      "title": "Data to plot the counties of New Mexico.",
      "topics": [
        "NM_map"
      ]
    },
    {
      "page": "NM_popcas",
      "title": "Population and brain cancer cases in New Mexico counties during 1973-1991.",
      "topics": [
        "NM_popcas"
      ]
    },
    {
      "page": "scan_bayes_negbin",
      "title": "Calculate the negative binomial bayesian scan statistic..",
      "topics": [
        "scan_bayes_negbin"
      ]
    },
    {
      "page": "scan_eb_negbin",
      "title": "Calculate the expectation-based negative binomial scan statistic.",
      "topics": [
        "scan_eb_negbin"
      ]
    },
    {
      "page": "scan_eb_poisson",
      "title": "Calculate the expectation-based Poisson scan statistic.",
      "topics": [
        "scan_eb_poisson"
      ]
    },
    {
      "page": "scan_eb_zip",
      "title": "Calculate the expectation-based ZIP scan statistic.",
      "topics": [
        "scan_eb_zip"
      ]
    },
    {
      "page": "scan_pb_poisson",
      "title": "Calculate the population-based Poisson scan statistic.",
      "topics": [
        "scan_pb_poisson"
      ]
    },
    {
      "page": "scan_permutation",
      "title": "Calculate the space-time permutation scan statistic.",
      "topics": [
        "scan_permutation"
      ]
    },
    {
      "page": "scanstatistics",
      "title": "scanstatistics: Space-time anomaly detection using scan statistics.",
      "topics": [
        "scanstatistics"
      ]
    },
    {
      "page": "score_locations",
      "title": "Score each location over zones and duration.",
      "topics": [
        "score_locations"
      ]
    },
    {
      "page": "top_clusters",
      "title": "Get the top (non-overlappig) clusters.",
      "topics": [
        "top_clusters"
      ]
    }
  ],
  "_readme": "https://github.com/promerpr/scanstatistics/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "generics",
    "glue",
    "ismev",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "mgcv",
    "nlme",
    "pillar",
    "pkgconfig",
    "plyr",
    "purrr",
    "R6",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "sets",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "introduction.Rmd",
      "filename": "introduction.html",
      "title": "Introduction to scanstatistics",
      "author": "Benjamin Allévius",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What are scan statistics?",
        "Main functions",
        "Scan statistics",
        "Zone creation",
        "Miscellaneous",
        "Example: Brain cancer in New Mexico",
        "A scan statistic for Poisson data",
        "Theoretical motivation",
        "Using the Poisson scan statistic",
        "Spatial zones",
        "Baselines",
        "Calculation",
        "A heuristic score for locations",
        "Finding the top-scoring clusters",
        "Concluding remarks",
        "Feedback",
        "References"
      ],
      "created": "2016-09-27 06:12:03",
      "modified": "2022-10-24 16:43:33",
      "commits": 14
    }
  ],
  "_score": 5.184691430817599,
  "_indexed": true,
  "_nocasepkg": "scanstatistics",
  "_universes": [
    "promerpr"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-17T11:02:04.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/ea317b88fb796e9a72a21db6f58f486a069215be3677c7e49843cd5d2c053dcd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-17T11:02:05.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/1736a961df25ad64c095351ba0b774f47a3262baad8b6acfacc5e3e9b1df16b2",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-17T11:01:56.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/10abd8c95924f9ba90066f8849bf3888f19bb45a697e413c2cf54f84523d7285",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-10-17T11:02:30.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/4430c052d740ccdbb474294acaf74db5c7aa26fded5832b566a42ee095d72af1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-17T11:03:31.000Z",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/b106e4142905fc316be57ba831e234f1b7cf9f6b965e8a3d028d9ce71bcd8b4f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-10-17T11:05:12.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/be84322b2871c6088dd2c73384a86ec8a3ab72ab667d7637a1a9ed0d6e513855",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-10-17T11:01:54.000Z",
      "arch": "emscripten",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/22b82254e7a8781a79e87c6a976a99664b8af964afc48dc4cefe3809eecec1ce",
      "status": "success",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-17T11:04:59.000Z",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/d4e057e39a7f6788685685f701049ca7f2e60d7177cbfa5b0e57b53f5bd7aad1",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-17T11:00:51.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/3afa6e01c8de8f1a39d10ec12b9c3bbc6c013ee8a83b5ecf0ab2e06918863edb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-17T11:04:20.000Z",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/4f262d33b8324309ccf015cb7af139546a045d7f782a378c8232a2bbe5fe36fa",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-10-17T11:01:20.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "https://r2.ropensci.org/bd5df7aac040536bd8880198d5bd18ad4db02279b5dea37be9a5183475323493",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/39026727088"
    }
  ]
}