{
  "_id": "6ac8c08cde46216d5edd6823",
  "Package": "disaggregation",
  "Type": "Package",
  "Title": "Disaggregation Modelling",
  "Version": "0.4.0",
  "Authors@R": "c(\nperson(\"Anita\", \"Nandi\", email = \"anita.k.nandi@gmail.com\", role = \"aut\", comment = c(ORCID = \"0000-0002-5087-2494\")),\nperson(\"Tim\", \"Lucas\", email =  \"timcdlucas@gmail.com\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0003-4694-8107\")),\nperson(\"Rohan\", \"Arambepola\", email = \"rarambepola@gmail.com\", role = \"aut\"),\nperson(\"Andre\", \"Python\", email = \"python.andre@gmail.com\", role = \"aut\", comment = c(ORCID = \"0000-0001-8094-7226\")),\nperson(\"Simon\", \"Smart\", email = \"simon.smart@cantab.net\", role = \"ctb\")\n)",
  "Description": "Fits disaggregation regression models using 'TMB'\n('Template Model Builder'). When the response data are\naggregated to polygon level but the predictor variables are at\na higher resolution, these models can be useful. Regression\nmodels with spatial random fields. The package is described in\ndetail in Nandi et al. (2023) <doi:10.18637/jss.v106.i11>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "SystemRequirements": "GNU make",
  "VignetteBuilder": "knitr",
  "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://timcdlucas.r-universe.dev",
  "Date/Publication": "2024-11-13 15:43:10 UTC",
  "RemoteUrl": "https://github.com/timcdlucas/disaggregation",
  "RemoteRef": "HEAD",
  "RemoteSha": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-09 09:46:22 UTC",
    "User": "root"
  },
  "Author": "Anita Nandi [aut] (ORCID: <https://orcid.org/0000-0002-5087-2494>),\nTim Lucas [aut, cre] (ORCID: <https://orcid.org/0000-0003-4694-8107>),\nRohan Arambepola [aut],\nAndre Python [aut] (ORCID: <https://orcid.org/0000-0001-8094-7226>),\nSimon Smart [ctb]",
  "Maintainer": "Tim Lucas <timcdlucas@gmail.com>",
  "_user": "timcdlucas",
  "_type": "src",
  "_file": "disaggregation_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/857ee960deade3b742546da45ea3f9d801abfe00ccb2f05d7620799459576cc8",
  "_filesize": 1127489,
  "_sha256": "857ee960deade3b742546da45ea3f9d801abfe00ccb2f05d7620799459576cc8",
  "_expires": "2027-01-17T10:23:07.000Z",
  "_created": "2026-10-09T09:46:22.000Z",
  "_published": "2026-10-09T10:23:08.740Z",
  "_buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 113764012887,
      "time": 201,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11607657606"
    },
    {
      "job": 113764012982,
      "time": 252,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11608975754"
    },
    {
      "job": 113764012900,
      "time": 212,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11608640871"
    },
    {
      "job": 113764012848,
      "time": 259,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11607786870"
    },
    {
      "job": 113764013107,
      "time": 205,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11610480554"
    },
    {
      "job": 113764012856,
      "time": 450,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11609784691"
    },
    {
      "job": 113764012844,
      "time": 251,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11609769701"
    },
    {
      "job": 113764012901,
      "time": 416,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11610100102"
    },
    {
      "job": 113762403385,
      "time": 275,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11607562448"
    },
    {
      "job": 113764012770,
      "time": 150,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11608485746"
    },
    {
      "job": 113764012873,
      "time": 445,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11607966806"
    },
    {
      "job": 113764012804,
      "time": 276,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11608581021"
    },
    {
      "job": 113764012786,
      "time": 239,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11607752263"
    },
    {
      "job": 113764012875,
      "time": 450,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11608461449"
    },
    {
      "job": 113764012822,
      "time": 224,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11607627755"
    }
  ],
  "_upstream": "https://github.com/timcdlucas/disaggregation",
  "_commit": {
    "id": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
    "author": "Tim Lucas <timcdlucas@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #4 from simon-smart88/master\n\nUpdate for v0.4.0",
    "time": 1731512590
  },
  "_maintainer": {
    "name": "Tim Lucas",
    "email": "timcdlucas@gmail.com",
    "login": "timcdlucas",
    "twitter": "@statsforbios",
    "description": "U. of Leicester lecturer studying zoonotic and vector-borne disease, air pollution, human movement and geostatistics.",
    "uuid": 3583796,
    "orcid": "0000-0003-4694-8107"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "TMB",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "role": "LinkingTo"
    },
    {
      "package": "splancs",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "TMB",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "rSPDE",
      "role": "Imports"
    },
    {
      "package": "sparseMVN",
      "role": "Imports"
    },
    {
      "package": "fmesher",
      "role": "Imports"
    },
    {
      "package": "tidyterra",
      "role": "Imports"
    },
    {
      "package": "terra",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "SpatialEpi",
      "role": "Suggests"
    }
  ],
  "_owner": "timcdlucas",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [],
  "_tags": [],
  "_stars": 2,
  "_contributors": [
    {
      "user": "timcdlucas",
      "count": 199,
      "uuid": 3583796
    },
    {
      "user": "simon-smart88",
      "count": 85,
      "uuid": 137152810
    },
    {
      "user": "aknandi",
      "count": 16,
      "uuid": 12728523
    }
  ],
  "_userbio": {
    "uuid": 3583796,
    "type": "user",
    "name": "Tim Lucas",
    "followers": 79,
    "description": "U. of Leicester lecturer studying zoonotic and vector-borne disease, air pollution, human movement and geostatistics."
  },
  "_downloads": {
    "count": 584,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/disaggregation"
  },
  "_devurl": "https://github.com/timcdlucas/disaggregation",
  "_searchresults": 9,
  "_topics": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/disaggregation.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/timcdlucas/disaggregation",
  "_realowner": "timcdlucas",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2019-12-06"
    },
    {
      "version": "0.1.1",
      "date": "2019-12-10"
    },
    {
      "version": "0.1.2",
      "date": "2019-12-17"
    },
    {
      "version": "0.1.3",
      "date": "2020-02-19"
    },
    {
      "version": "0.1.4",
      "date": "2022-09-06"
    },
    {
      "version": "0.2.0",
      "date": "2023-04-28"
    },
    {
      "version": "0.2.1",
      "date": "2023-09-07"
    },
    {
      "version": "0.3.0",
      "date": "2023-11-08"
    },
    {
      "version": "0.4.0",
      "date": "2024-10-02"
    },
    {
      "version": "0.4.1",
      "date": "2025-08-22"
    }
  ],
  "_exports": [
    "as.disag_data",
    "build_mesh",
    "disag_model",
    "getCovariateRasters",
    "getPolygonData",
    "getStartendindex",
    "make_model_object",
    "plot_disag_model_data",
    "predict_model",
    "predict_uncertainty",
    "prepare_data"
  ],
  "_help": [
    {
      "page": "as.disag_data",
      "title": "Function to fit the disaggregation model",
      "topics": [
        "as.disag_data"
      ]
    },
    {
      "page": "build_mesh",
      "title": "Build mesh for disaggregaton model",
      "topics": [
        "build_mesh"
      ]
    },
    {
      "page": "disag_model",
      "title": "Fit the disaggregation model",
      "topics": [
        "disag_model"
      ]
    },
    {
      "page": "dummy",
      "title": "Roxygen commands",
      "topics": [
        "dummy"
      ]
    },
    {
      "page": "getCovariateRasters",
      "title": "Get a SpatRaster of covariates from a folder containing .tif files",
      "topics": [
        "getCovariateRasters"
      ]
    },
    {
      "page": "getPolygonData",
      "title": "Extract polygon id and response data into a data.frame from a sf object",
      "topics": [
        "getPolygonData"
      ]
    },
    {
      "page": "getStartendindex",
      "title": "Function to match pixels to their corresponding polygon",
      "topics": [
        "getStartendindex"
      ]
    },
    {
      "page": "make_model_object",
      "title": "Create the TMB model object for the disaggregation model",
      "topics": [
        "make_model_object"
      ]
    },
    {
      "page": "plot_disag_model_data",
      "title": "Convert results of the model ready for plotting",
      "topics": [
        "plot_disag_model_data"
      ]
    },
    {
      "page": "plot.disag_data",
      "title": "Plot input data for disaggregation",
      "topics": [
        "plot.disag_data"
      ]
    },
    {
      "page": "plot.disag_model",
      "title": "Plot results of fitted model",
      "topics": [
        "plot.disag_model"
      ]
    },
    {
      "page": "plot.disag_prediction",
      "title": "Plot mean and uncertainty predictions from the disaggregation model results",
      "topics": [
        "plot.disag_prediction"
      ]
    },
    {
      "page": "predict_model",
      "title": "Function to predict mean from the model result",
      "topics": [
        "predict_model"
      ]
    },
    {
      "page": "predict_uncertainty",
      "title": "Function to predict uncertainty from the model result",
      "topics": [
        "predict_uncertainty"
      ]
    },
    {
      "page": "predict.disag_model",
      "title": "Predict mean and uncertainty from the disaggregation model result",
      "topics": [
        "predict.disag_model"
      ]
    },
    {
      "page": "prepare_data",
      "title": "Prepare data for disaggregation modelling",
      "topics": [
        "prepare_data"
      ]
    },
    {
      "page": "print.disag_data",
      "title": "Print function for disaggregation input data",
      "topics": [
        "print.disag_data"
      ]
    },
    {
      "page": "print.disag_model",
      "title": "Print function for disaggregation fit result.",
      "topics": [
        "print.disag_model"
      ]
    },
    {
      "page": "print.disag_prediction",
      "title": "Print function for disaggregation prediction",
      "topics": [
        "print.disag_prediction"
      ]
    },
    {
      "page": "summary.disag_data",
      "title": "Summary function for disaggregation input data",
      "topics": [
        "summary.disag_data"
      ]
    },
    {
      "page": "summary.disag_model",
      "title": "Summary function for disaggregation fit result",
      "topics": [
        "summary.disag_model"
      ]
    },
    {
      "page": "summary.disag_prediction",
      "title": "Summary function for disaggregation prediction",
      "topics": [
        "summary.disag_prediction"
      ]
    }
  ],
  "_readme": "https://github.com/timcdlucas/disaggregation/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "broom",
    "class",
    "classInt",
    "cli",
    "cowplot",
    "cpp11",
    "data.table",
    "DBI",
    "dplyr",
    "e1071",
    "farver",
    "fmesher",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "pillar",
    "pkgconfig",
    "proxy",
    "purrr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "rSPDE",
    "s2",
    "S7",
    "scales",
    "sf",
    "sp",
    "sparseMVN",
    "splancs",
    "stringi",
    "stringr",
    "terra",
    "tibble",
    "tidyr",
    "tidyselect",
    "tidyterra",
    "TMB",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_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": "disaggregation.Rmd",
      "filename": "disaggregation.html",
      "title": "A short introduction to the disaggregation package",
      "author": "Anita Nandi",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Example"
      ],
      "created": "2019-10-15 13:35:39",
      "modified": "2024-11-13 15:43:10",
      "commits": 15
    }
  ],
  "_score": 4.778151250383644,
  "_indexed": true,
  "_nocasepkg": "disaggregation",
  "_universes": [
    "timcdlucas"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-09T09:48:51.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/1dfda048a36fd9375f6168a701c87291ece5e6f6d532262d4b16383d0b1f412d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-09T09:49:13.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/bca08ba7f4996117008b21b2b955a16a1e4db9f8a33f58a39d68cb1c4cfc8a19",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-09T09:48:57.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/d47d9c59db7783b762bd1f909054c4620885fa20b022f4104884dda5359385a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-10-09T09:49:48.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/8446c3dcf557b56ac6fb418de6c1f7e960fb2a3f3d22ea98dbe29560d5a13e58",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-09T10:20:55.000Z",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/cc110639ffeeaf70994f1afc7b76a90657bf67c9696191165e81811f0f9e87a3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-09T10:14:06.000Z",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/5cdad20735bae13bdaffb9e51d0fd4779f4a9a7d2ef2422b11091e2d46a84829",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-09T10:18:55.000Z",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/2ad0d82d38656ece8f7c4113a2b35fdbff166c97652eb54c63021a7e19b51476",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-10-09T10:15:51.000Z",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/2b50e81d6c3c12048e173732f9885f1a94a6e56cedb2a07826c67235851fe144",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-10-09T09:49:23.000Z",
      "arch": "emscripten",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/a8ccc396017ff595c9ab4ed7808d7de57a13fb2ea318574a6fd7d8ea0064b299",
      "status": "success",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-09T09:52:03.000Z",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/f94074f360ee6329532462dc993ead601e409e14e8cd8512a76b668ecbb61776",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-09T09:48:14.000Z",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/0b6c497a0253e50eaf9c9d945e18b16646fc624e1f4f794cc70092156a0efc6e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-09T09:48:24.000Z",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/f2c3328ce5ab88f123f89dc9c4e8fb3c560303139d16bc51197005c569c8b818",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-09T09:52:16.000Z",
      "arch": "aarch64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/58726a270cd3be8931cb352541e4ce45a27fc21868ae1c947e348d4cfd41cbc0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-10-09T09:48:07.000Z",
      "arch": "x86_64",
      "commit": "51660f4533673280c1f9ec5f470fadb2f3846d1a",
      "fileid": "https://r2.ropensci.org/2c07c83b414eff231b1471eb244304e00bf3c0a7e4abe76ece4acf352584d882",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/timcdlucas/actions/runs/37912970863"
    }
  ]
}