{
  "_id": "6a1a74301d7bb097a09d144e",
  "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-05-28 14:46:10 UTC",
    "User": "root"
  },
  "Author": "Benjamin Allévius [aut],\nPaul Romer Present [ctb, cre]",
  "Maintainer": "Paul Romer Present <paul.romerpresent@fastmail.fm>",
  "MD5sum": "2f834c852e05158bc2f974ea09651928",
  "_user": "promerpr",
  "_type": "src",
  "_file": "scanstatistics_1.1.1.tar.gz",
  "_fileid": "b2a3308d2c189818dfc1581ba71ff239b0fab8946e2661e16e395984f2b07d99",
  "_filesize": 656764,
  "_sha256": "b2a3308d2c189818dfc1581ba71ff239b0fab8946e2661e16e395984f2b07d99",
  "_created": "2026-05-28T14:46:10.000Z",
  "_published": "2026-05-30T05:22:56.047Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78626263160,
      "time": 197,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7269099272"
    },
    {
      "job": 78626263203,
      "time": 211,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7269147922"
    },
    {
      "job": 78626263275,
      "time": 195,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7269098791"
    },
    {
      "job": 78626263240,
      "time": 208,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7269123321"
    },
    {
      "job": 78626263045,
      "time": 117,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 78626263042,
      "time": 196,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 78626263261,
      "time": 212,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7269621713"
    },
    {
      "job": 78626263115,
      "time": 358,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7269784793"
    },
    {
      "job": 78626263027,
      "time": 275,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7269014870"
    },
    {
      "job": 78626263166,
      "time": 152,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7269122683"
    },
    {
      "job": 78626263230,
      "time": 200,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7269138263"
    },
    {
      "job": 78626263038,
      "time": 54,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 78626263138,
      "time": 185,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7269136132"
    }
  ],
  "_buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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"
  },
  "_downloads": {
    "count": 285,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/scanstatistics"
  },
  "_devurl": "https://github.com/promerpr/scanstatistics",
  "_searchresults": 48,
  "_topics": [
    "cpp"
  ],
  "_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/scanstatistics.html",
    "manual.pdf"
  ],
  "_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": "14.2.0-4ubuntu2~24.04.1",
      "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.15836249209525,
  "_indexed": true,
  "_nocasepkg": "scanstatistics",
  "_universes": [
    "promerpr"
  ],
  "_binaries": [
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-04-15T05:25:48.000Z",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "47d5c02a650604fda799495ddf550059f421692d6fbc08ef000f5d22032afabb",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/24437764212"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-04-15T05:27:21.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "f295a7ff3b1cce2e3acd0c1567022b2d86bed25ec6d0e1ff0842fd9121169d35",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/24437764212"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-04-15T05:24:59.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "08880ac8e06d8c3a26cf226e293c2ae7bb8f0812b9d8ebfc66238cb157421766",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/24437764212"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-28T14:49:17.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "0ff18ed7ff172d874f66f0f55a0e994784bbe9f6858ca481ee53d9f0234bea71",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-28T14:51:08.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "4e0bcc2d2b6337f38a5b847946842cdd534638908e495ac42984651c628b1bba",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-28T14:49:16.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "5cbfeab4afb411a908f26f11f790f7831c13053e3c6b3c8582c53ffac7fefa6f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1.1",
      "date": "2026-05-28T14:50:07.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "66999c5f03ce4a463d4f8259bc0564ccff93dd8e4dc706da02252ec6705e2393",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-28T15:09:22.000Z",
      "arch": "aarch64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "e40beaf68ed35d5ed5de270decd641d0f13680089c82bb6ed7d420f6eb04c426",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1.1",
      "date": "2026-05-28T15:14:42.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "3fef4b171965b98fc08450041ccfba1f7ac85984373c9bcb0110fd62f25cbfd3",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1.1",
      "date": "2026-05-28T14:50:53.000Z",
      "arch": "emscripten",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "f3d515eb9a37ab1b66649cee5854254443c4ea447dacc2515717c1a40d7170e8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-28T14:49:48.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "64b2f8447ee7b4a6b82d4ba616ceba7fd3d2c2c47e43a1b7a9ae27b5a6dcbb54",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1.1",
      "date": "2026-05-28T14:49:52.000Z",
      "arch": "x86_64",
      "commit": "d3f0113c6226c5814caeebfa26a0dedbeec126b9",
      "fileid": "25e927a2e3253fe113e03233a4ee9283a1ef064e70799b51c50a938707eb0ab5",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/promerpr/actions/runs/26581700444"
    }
  ]
}