{
  "_id": "6a1d312f1d7bb097a0a3afd5",
  "Package": "mbg",
  "Title": "Model-Based Geostatistics",
  "Version": "1.2.0",
  "Authors@R": "c(\nperson(\"Nathaniel\", \"Henry\", email = \"nat@henryspatialanalysis.com\",\nrole = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0001-8150-4988\")),\nperson(\"Benjamin\", \"Mayala\", role = c(\"aut\")),\nperson(\"Roy\", \"Burstein\", role = c(\"ctb\"), comment = c(ORCID = \"0000-0001-8991-4762\")),\nperson(\"Nafis\", \"Sadat\", role = c(\"ctb\")),\nperson(\"Michael\", \"Richards\", role = c(\"ctb\")),\nperson(\"Michael\", \"Collison\", role = c(\"ctb\")),\nperson(\"Michael\", \"Cork\", role = c(\"ctb\")))",
  "Description": "Modern model-based geostatistics for point-referenced\ndata. This package provides a simple interface to run spatial\nmachine learning models and geostatistical models that estimate\na continuous (raster) surface from point-referenced outcomes\nand, optionally, a set of raster covariates. The package also\nincludes functions to summarize raster outcomes by (polygon)\nregion while preserving uncertainty.",
  "License": "MIT + file LICENSE",
  "Additional_repositories": "https://inla.r-inla-download.org/R/stable/",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE, r6 = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://henryspatialanalysis.github.io/mbg/",
  "BugReports": "https://github.com/henryspatialanalysis/mbg/issues",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev",
  "Repository": "https://henryspatialanalysis.r-universe.dev",
  "Date/Publication": "2026-03-31 21:47:27 UTC",
  "RemoteUrl": "https://github.com/henryspatialanalysis/mbg",
  "RemoteRef": "HEAD",
  "RemoteSha": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-01 06:53:06 UTC",
    "User": "root"
  },
  "Author": "Nathaniel Henry [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8150-4988>),\nBenjamin Mayala [aut],\nRoy Burstein [ctb] (ORCID: <https://orcid.org/0000-0001-8991-4762>),\nNafis Sadat [ctb],\nMichael Richards [ctb],\nMichael Collison [ctb],\nMichael Cork [ctb]",
  "Maintainer": "Nathaniel Henry <nat@henryspatialanalysis.com>",
  "MD5sum": "10186af464aec2afe954372de73b02a9",
  "_user": "henryspatialanalysis",
  "_type": "src",
  "_file": "mbg_1.2.0.tar.gz",
  "_fileid": "8cbb2c6bb549808c386765855019227cba7920d653cd6911408133a5ad5b0f35",
  "_filesize": 4139406,
  "_sha256": "8cbb2c6bb549808c386765855019227cba7920d653cd6911408133a5ad5b0f35",
  "_created": "2026-06-01T06:53:06.000Z",
  "_published": "2026-06-01T07:13:51.446Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78801130859,
      "time": 279,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7325187862"
    },
    {
      "job": 78801130893,
      "time": 266,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325184648"
    },
    {
      "job": 78801130875,
      "time": 204,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7325256266"
    },
    {
      "job": 78801130881,
      "time": 274,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325421848"
    },
    {
      "job": 78800612976,
      "time": 246,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325114635"
    },
    {
      "job": 78801130849,
      "time": 161,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325156988"
    },
    {
      "job": 78801130847,
      "time": 204,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7325168632"
    },
    {
      "job": 78801130845,
      "time": 216,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7325172127"
    },
    {
      "job": 78801130885,
      "time": 226,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325174518"
    }
  ],
  "_buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/henryspatialanalysis/mbg",
  "_commit": {
    "id": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
    "author": "Nathaniel Henry <nat.henry7@gmail.com>",
    "committer": "Nathaniel Henry <nat.henry7@gmail.com>",
    "message": "Bump to v.1.2.0: fix for NA weights when na.rm = T.\n",
    "time": 1774993647
  },
  "_maintainer": {
    "name": "Nathaniel Henry",
    "email": "nat@henryspatialanalysis.com",
    "orcid": "0000-0001-8150-4988"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "caret",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "matrixStats",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "R6",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "terra",
      "version": ">= 1.9.1",
      "role": "Imports"
    },
    {
      "package": "tictoc",
      "role": "Imports"
    },
    {
      "package": "INLA",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    }
  ],
  "_owner": "henryspatialanalysis",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-28",
      "n": 2
    },
    {
      "week": "2026-11",
      "n": 4
    },
    {
      "week": "2026-14",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 45,
  "_contributors": [
    {
      "user": "njhenry",
      "count": 177,
      "uuid": 13667562
    }
  ],
  "_userbio": {
    "uuid": 139169782,
    "type": "organization",
    "name": "Henry Spatial Analysis",
    "description": "A mission-driven spatial analysis firm focused on health and urban sustainability"
  },
  "_downloads": {
    "count": 592,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/mbg"
  },
  "_devurl": "https://github.com/henryspatialanalysis/mbg",
  "_pkgdown": "https://henryspatialanalysis.github.io/mbg/",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/mbg.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/henryspatialanalysis/mbg",
  "_realowner": "henryspatialanalysis",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2025-04-02"
    },
    {
      "version": "1.1.0",
      "date": "2025-04-26"
    },
    {
      "version": "1.1.2",
      "date": "2026-03-10"
    },
    {
      "version": "1.2.0",
      "date": "2026-03-31"
    }
  ],
  "_exports": [
    "aggregate_draws_to_polygons",
    "aggregate_raster_to_polygons",
    "build_aggregation_table",
    "build_id_raster",
    "dissolve_sf_by_attribute",
    "fit_inla_model",
    "generate_cell_draws_and_summarize",
    "load_covariates",
    "log_posterior_density",
    "logging_get_timer_log",
    "logging_start_timer",
    "logging_stop_timer",
    "make_time_stamp",
    "make_world_template_raster",
    "MbgModelRunner",
    "prepare_inla_data_stack",
    "rmse_raster_to_point",
    "run_regression_submodels",
    "summarize_draws",
    "values_to_raster",
    "vif_covariate_select"
  ],
  "_help": [
    {
      "page": "dot-onAttach",
      "title": "Behavior when attaching the mbg package",
      "topics": [
        ".onAttach"
      ]
    },
    {
      "page": "aggregate_draws_to_polygons",
      "title": "Aggregate grid cell draws to polygons",
      "concept": [
        "aggregation"
      ],
      "topics": [
        "aggregate_draws_to_polygons"
      ]
    },
    {
      "page": "aggregate_raster_to_polygons",
      "title": "Aggregate a raster to polygons",
      "concept": [
        "aggregation"
      ],
      "topics": [
        "aggregate_raster_to_polygons"
      ]
    },
    {
      "page": "build_aggregation_table",
      "title": "Build aggregation table",
      "concept": [
        "aggregation"
      ],
      "topics": [
        "build_aggregation_table"
      ]
    },
    {
      "page": "build_id_raster",
      "title": "Build ID raster",
      "concept": [
        "core_inputs"
      ],
      "topics": [
        "build_id_raster"
      ]
    },
    {
      "page": "dissolve_sf_by_attribute",
      "title": "Dissolve sf object by attribute",
      "topics": [
        "dissolve_sf_by_attribute"
      ]
    },
    {
      "page": "fit_inla_model",
      "title": "Fit INLA model",
      "concept": [
        "model_fit"
      ],
      "topics": [
        "fit_inla_model"
      ]
    },
    {
      "page": "generate_cell_draws_and_summarize",
      "title": "Generate cell draws and summary rasters from INLA model",
      "concept": [
        "prediction"
      ],
      "topics": [
        "generate_cell_draws_and_summarize"
      ]
    },
    {
      "page": "load_covariates",
      "title": "Load covariates",
      "concept": [
        "core_inputs"
      ],
      "topics": [
        "load_covariates"
      ]
    },
    {
      "page": "log_posterior_density",
      "title": "Generate log posterior predictive density from a geostatistical surface onto point data",
      "concept": [
        "validation"
      ],
      "topics": [
        "log_posterior_density"
      ]
    },
    {
      "page": "logging_get_timer_log",
      "title": "Get timer log",
      "topics": [
        "logging_get_timer_log"
      ]
    },
    {
      "page": "logging_start_timer",
      "title": "Start logging timer",
      "topics": [
        "logging_start_timer"
      ]
    },
    {
      "page": "logging_stop_timer",
      "title": "End logging timer",
      "topics": [
        "logging_stop_timer"
      ]
    },
    {
      "page": "make_time_stamp",
      "title": "Make time stamp",
      "topics": [
        "make_time_stamp"
      ]
    },
    {
      "page": "make_world_template_raster",
      "title": "Make world template raster",
      "concept": [
        "core_inputs"
      ],
      "topics": [
        "make_world_template_raster"
      ]
    },
    {
      "page": "MbgModelRunner",
      "title": "MBG model runner class",
      "concept": [
        "model_runner"
      ],
      "topics": [
        "MbgModelRunner"
      ]
    },
    {
      "page": "prepare_inla_data_stack",
      "title": "Prepare data stack for INLA",
      "concept": [
        "model_fit"
      ],
      "topics": [
        "prepare_inla_data_stack"
      ]
    },
    {
      "page": "rmse_raster_to_point",
      "title": "Generate RMSE from an estimated raster surface and point data",
      "concept": [
        "validation"
      ],
      "topics": [
        "rmse_raster_to_point"
      ]
    },
    {
      "page": "run_regression_submodels",
      "title": "Run regression sub-models",
      "concept": [
        "model_fit"
      ],
      "topics": [
        "run_regression_submodels"
      ]
    },
    {
      "page": "summarize_draws",
      "title": "Summarize draws",
      "concept": [
        "prediction"
      ],
      "topics": [
        "summarize_draws"
      ]
    },
    {
      "page": "values_to_raster",
      "title": "Insert values into a raster",
      "concept": [
        "prediction"
      ],
      "topics": [
        "values_to_raster"
      ]
    },
    {
      "page": "vif_covariate_select",
      "title": "Run variance inflation factor (VIF) selection on input covariates",
      "topics": [
        "vif_covariate_select"
      ]
    }
  ],
  "_pkglogo": "https://github.com/henryspatialanalysis/mbg/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/henryspatialanalysis/mbg/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "caret",
    "class",
    "classInt",
    "cli",
    "clock",
    "codetools",
    "cpp11",
    "data.table",
    "DBI",
    "diagram",
    "digest",
    "dplyr",
    "e1071",
    "farver",
    "foreach",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "globals",
    "glue",
    "gower",
    "gtable",
    "hardhat",
    "ipred",
    "isoband",
    "iterators",
    "KernSmooth",
    "labeling",
    "lattice",
    "lava",
    "lifecycle",
    "listenv",
    "lubridate",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "ModelMetrics",
    "nlme",
    "nnet",
    "numDeriv",
    "parallelly",
    "pillar",
    "pkgconfig",
    "plyr",
    "pROC",
    "prodlim",
    "progressr",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "recipes",
    "reshape2",
    "rlang",
    "rpart",
    "s2",
    "S7",
    "scales",
    "sf",
    "shape",
    "sparsevctrs",
    "SQUAREM",
    "stringi",
    "stringr",
    "survival",
    "terra",
    "tibble",
    "tictoc",
    "tidyr",
    "tidyselect",
    "timechange",
    "timeDate",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "all-model-options.Rmd",
      "filename": "all-model-options.html",
      "title": "All model runner options",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1: MBG model basics",
        "1.A: Input data",
        "1.B: ID raster",
        "2: Model family and link function",
        "3: Model effects",
        "3.A: Covariate effects",
        "3.A.i: Standard covariate effect",
        "3.A.ii: Stacked ensemble model",
        "3.B: Gaussian process",
        "3.C: Administrative-level effect",
        "3.D: Nugget",
        "4: Aggregation to polygon boundaries",
        "5: Logging",
        "6: Further reading"
      ],
      "created": "2025-03-27 05:01:37",
      "modified": "2025-03-27 22:08:35",
      "commits": 2
    },
    {
      "source": "mbg.Rmd",
      "filename": "mbg.html",
      "title": "Getting started with MBG",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setting up",
        "Building MBG model inputs",
        "Fit the geostatistical model",
        "Plot gridded estimates",
        "Plot aggregated estimates"
      ],
      "created": "2024-07-24 22:50:25",
      "modified": "2025-03-27 22:08:35",
      "commits": 10
    },
    {
      "source": "model-comparison.Rmd",
      "filename": "model-comparison.html",
      "title": "Model validation and comparison",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Predictive validity metrics",
        "Log predictive density",
        "Watanabe-Aikake information criterion",
        "Root mean squared error",
        "Model cross-validation",
        "Setup",
        "In-sample model comparison",
        "Out-of-sample model comparison",
        "Summary",
        "Further reading"
      ],
      "created": "2025-03-27 05:01:37",
      "modified": "2025-03-27 22:08:35",
      "commits": 2
    },
    {
      "source": "spatial-ml-models.Rmd",
      "filename": "spatial-ml-models.html",
      "title": "Running spatial machine learning models",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setup",
        "Running ML models with mbg and caret",
        "Stacking ML models"
      ],
      "created": "2025-03-27 05:01:37",
      "modified": "2025-03-27 22:08:35",
      "commits": 2
    }
  ],
  "_score": 6.472756449317213,
  "_indexed": true,
  "_nocasepkg": "mbg",
  "_universes": [
    "henryspatialanalysis"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-01T06:56:09.000Z",
      "distro": "noble",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "b8bbe2e0eb582e0dbe3a9d77626aac2e2dbe731ce8dc1da7cfeba7f3e61e31fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.0",
      "date": "2026-06-01T06:56:05.000Z",
      "distro": "noble",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "491f3553556bff65a0e04c9c5477d0fbec7b29ac8552b9f5de4bec42f173c697",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-01T07:01:27.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "a3a0810cbe32151afac5a1a576d3dd1a7920a6d8e9d3f191fab4dcd76c153ee0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.0",
      "date": "2026-06-01T07:11:10.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "7140d000e905756153a8fc6f157dd2975bf370ef13c800c7afe0fdb9747e8965",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.0",
      "date": "2026-06-01T06:56:17.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "2e90a0a0ef0f2c62ea862a5a2a692dbc78427c37088c9b20f94560e7785f4825",
      "status": "success",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-01T06:54:55.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "3156d07f29356c3f7aeba9663ddbd0cd22bc76f5ebfef558fd70aae89161edb7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-01T06:54:44.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "86c3d76e5204c625ef841630df31ed4742047ab58b31bb4112fd8bfb9282c220",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.0",
      "date": "2026-06-01T06:55:01.000Z",
      "commit": "1dd8b610bef0e6b33505f7be25d0509d3ca63291",
      "fileid": "58a92d4547d8084a1eb335930bd5a6a7139049f28b7a7ba4db5f6b2c6cb211d4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/henryspatialanalysis/actions/runs/26739710624"
    }
  ]
}