{
  "_id": "6a8487eb70de4fbf1b35980c",
  "Package": "nbhdmodel",
  "Title": "Neighborhood Modeling and Analysis",
  "Version": "0.1.0.9000",
  "Authors@R": "c(\nperson(\"Cory\", \"McCartan\", email=\"cmccartan@g.harvard.edu\", role=c(\"aut\", \"cre\")),\nperson(\"Jacob\", \"Brown\", email=\"jrbrown@g.harvard.edu\", role=\"aut\"),\nperson(\"Kosuke\", \"Imai\", email=\"imai@harvard.edu\", role=\"aut\")\n)",
  "Description": "Functionality for fitting neighborhood models of McCartan,\nBrown, and Imai <arXiv:2110.14014>. The core methodology is\ndescribed in the paper and can be implemented with any tool\nthat can fit generalized linear mixed models (GLMMs). However,\nsome of the preprocessing necessary to set up the GLMM can be\nonerous. In addition to providing a specialized GLMM routine,\nthis package provides several preprocessing functions that,\nwhile not completely general, should be useful for others\nperforming these kinds of analyses.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "SystemRequirements": "GNU make",
  "URL": "https://github.com/CoryMcCartan/nbhdmodel",
  "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://corymccartan.r-universe.dev",
  "Date/Publication": "2024-02-06 00:47:01 UTC",
  "RemoteUrl": "https://github.com/CoryMcCartan/nbhdmodel",
  "RemoteRef": "HEAD",
  "RemoteSha": "6e7d39e648997ca57c9bd14d833337617c2211d6",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-08-18 15:42:10 UTC",
    "User": "root"
  },
  "Author": "Cory McCartan [aut, cre],\nJacob Brown [aut],\nKosuke Imai [aut]",
  "Maintainer": "Cory McCartan <cmccartan@g.harvard.edu>",
  "_user": "corymccartan",
  "_type": "src",
  "_file": "nbhdmodel_0.1.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/defdafb79e42df383bdeec0052e0ff860c66ed0cb9ed322787d1dbf8bc74c0bb",
  "_filesize": 218155,
  "_sha256": "defdafb79e42df383bdeec0052e0ff860c66ed0cb9ed322787d1dbf8bc74c0bb",
  "_expires": "2026-11-26T16:27:21.000Z",
  "_created": "2026-08-18T15:42:10.000Z",
  "_published": "2026-10-14T06:33:51.249Z",
  "_jobs": [
    {
      "job": 95773868196,
      "time": 222,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9331900271"
    },
    {
      "job": 95773868179,
      "time": 262,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9332053398"
    },
    {
      "job": 95773868143,
      "time": 211,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9331893465"
    },
    {
      "job": 95773868152,
      "time": 245,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9332045082"
    },
    {
      "job": 95773868150,
      "time": 204,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "9333146053"
    },
    {
      "job": 95773868141,
      "time": 509,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "9333329734"
    },
    {
      "job": 95773868234,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9333123011"
    },
    {
      "job": 95773868191,
      "time": 360,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9333248773"
    },
    {
      "job": 95771263155,
      "time": 288,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9331745054"
    },
    {
      "job": 95773868058,
      "time": 225,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "9332031448"
    },
    {
      "job": 95773869370,
      "time": 300,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9331951290"
    },
    {
      "job": 95773869228,
      "time": 290,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9332079592"
    },
    {
      "job": 95773869217,
      "time": 270,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "9332066105"
    },
    {
      "job": 95773869252,
      "time": 292,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9331944798"
    },
    {
      "job": 95773869202,
      "time": 248,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9332050678"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451",
  "_status": "success",
  "_upstream": "https://github.com/CoryMcCartan/nbhdmodel",
  "_commit": {
    "id": "6e7d39e648997ca57c9bd14d833337617c2211d6",
    "author": "Cory McCartan <CoryMcCartan@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "fix url",
    "time": 1707180421
  },
  "_maintainer": {
    "name": "Cory McCartan",
    "email": "cmccartan@g.harvard.edu",
    "login": "corymccartan",
    "bluesky": "@corymccartan.com",
    "description": "Assistant Professor of Statistics at Penn State, working on computational social science problems and open-source R software.",
    "uuid": 2958471
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "BH",
      "version": ">= 1.66.0",
      "role": "LinkingTo"
    },
    {
      "package": "cpp11",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppEigen",
      "version": ">= 0.3.3.3.0",
      "role": "LinkingTo"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "LinkingTo"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "LinkingTo"
    },
    {
      "package": "StanHeaders",
      "version": ">= 2.18.0",
      "role": "LinkingTo"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "fastmatch",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "lme4",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.18.1",
      "role": "Imports"
    },
    {
      "package": "s2",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "readr",
      "role": "Suggests"
    }
  ],
  "_owner": "corymccartan",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "corymccartan",
      "count": 9,
      "uuid": 2958471
    }
  ],
  "_userbio": {
    "uuid": 2958471,
    "type": "user",
    "name": "Cory McCartan",
    "followers": 63,
    "description": "Assistant Professor of Statistics at Penn State, working on computational social science problems and open-source R software."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/nbhdmodel"
  },
  "_devurl": "https://github.com/corymccartan/nbhdmodel",
  "_searchresults": 0,
  "_topics": [
    "onetbb",
    "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/nbhdmodel.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "binned_resid",
    "calc_indiv_frame",
    "fastAUC",
    "fixef",
    "local_area",
    "neighborhood_model",
    "post_incl",
    "ranef",
    "simulate_neighborhood"
  ],
  "_help": [
    {
      "page": "binned_resid",
      "title": "Binned Residual Plot",
      "topics": [
        "binned_resid"
      ]
    },
    {
      "page": "calc_indiv_frame",
      "title": "Create a model data frame for an individual respondent",
      "topics": [
        "calc_indiv_frame"
      ]
    },
    {
      "page": "eff_dist",
      "title": "Get Posterior Mean of Effective Block Distance",
      "topics": [
        "eff_dist"
      ]
    },
    {
      "page": "fastAUC",
      "title": "Calculate AUC",
      "topics": [
        "fastAUC"
      ]
    },
    {
      "page": "local_area",
      "title": "Filter block data to a radius of a FIPS code",
      "topics": [
        "local_area"
      ]
    },
    {
      "page": "nbhd_fit",
      "title": "Functions for working with neighborhood fits",
      "topics": [
        "as.data.frame.nbhd_fit",
        "as.matrix.nbhd_fit",
        "coef.nbhd_fit",
        "fitted.nbhd_fit",
        "fixef.nbhd_fit",
        "nbhd_fit",
        "ranef.nbhd_fit",
        "residuals.nbhd_fit",
        "summary.nbhd_fit"
      ]
    },
    {
      "page": "neighborhood_model",
      "title": "Fit the Neighborhood Model",
      "topics": [
        "neighborhood_model"
      ]
    },
    {
      "page": "plot.nbhd_fit",
      "title": "Plot coefficient estimates",
      "topics": [
        "plot.nbhd_fit"
      ]
    },
    {
      "page": "post_incl",
      "title": "Get Posterior Block Inclusion Probabilities",
      "topics": [
        "post_incl"
      ]
    },
    {
      "page": "simulate_neighborhood",
      "title": "Simulate a neighborhood for a respondent",
      "topics": [
        "simulate_neighborhood"
      ]
    }
  ],
  "_readme": "https://github.com/CoryMcCartan/nbhdmodel/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "BH",
    "boot",
    "callr",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "cpp11",
    "DBI",
    "desc",
    "distributional",
    "dplyr",
    "e1071",
    "farver",
    "fastmatch",
    "generics",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "inline",
    "isoband",
    "KernSmooth",
    "labeling",
    "lattice",
    "lifecycle",
    "lme4",
    "loo",
    "magrittr",
    "MASS",
    "Matrix",
    "matrixStats",
    "minqa",
    "nlme",
    "nloptr",
    "numDeriv",
    "otel",
    "pillar",
    "pkgbuild",
    "pkgconfig",
    "posterior",
    "processx",
    "proxy",
    "ps",
    "QuickJSR",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "RcppParallel",
    "Rdpack",
    "reformulas",
    "rlang",
    "rstan",
    "s2",
    "S7",
    "scales",
    "sf",
    "StanHeaders",
    "stringi",
    "stringr",
    "tensorA",
    "tibble",
    "tidyselect",
    "units",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "libtbb",
      "package": "libtbb12",
      "headers": "libtbb-dev",
      "source": "onetbb",
      "version": "2022.3.0-2",
      "name": "onetbb",
      "homepage": "https://uxlfoundation.github.io/oneTBB/",
      "description": "parallelism library for C++ - runtime files"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_score": 2.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "nbhdmodel",
  "_universes": [
    "corymccartan"
  ],
  "_failure": {
    "version": "0.1.0.9000",
    "commit": {
      "id": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "author": "Cory McCartan <CoryMcCartan@users.noreply.github.com>",
      "committer": "GitHub <noreply@github.com>",
      "message": "fix url",
      "time": 1707180421
    },
    "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/38151116891",
    "date": "2026-10-14T06:33:51.244Z",
    "job": {
      "job": 115715080373,
      "time": 276,
      "config": "source",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "11875140382"
    }
  },
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:45:50.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/0eaa02825c971fc300de842b9ae7069412b0c452718f8d1253b9e119e1622f6e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:49:27.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/104c0b7dca39a6834a5bd61f71eb322b9ebd76fa611a5c200804adb8a59639c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:45:43.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/3c5af6d3ff060c055f23d55c39cb09a7e940bae245016d7705286166f0c486e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:49:21.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/9be47d12e911c44f38be688e8df1c1c81df840a1dff5e58c220fc6243e72f837",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-08-18T16:19:56.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/c63040c8988e6bfffc91d6f5dc1b0f877f91bf69051f84d2d925485af469437e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-08-18T16:21:22.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/5262aa16b767eff1991298814d2bc7d6c87a75c8e972d129d93e92a307ae9433",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-08-18T16:19:28.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/6ecc4958adaf02f8e056d1e0e6e53554b01e58b04c2b1742f1ebf64f47eb842e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-08-18T16:21:18.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/8e2858e0f26d748a6f0603661b16c7c92c64f588f41fdd9b38e145edfec3b4b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:49:38.000Z",
      "arch": "emscripten",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/78da06fa2587b06521fd45d37a5ffca69a676b7239ed25b5d49ff99bc0f0952a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:46:36.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/48a1d8e93026a953fcbd35945acf3e9c2464e6a2f99423e14fcf1681cd451f89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:48:16.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/2bcc73e9ef7168ec9c17d38603607a19f589b330089e3bb0d0112ec931bb9ef1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:49:20.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/54e35fbaace1f5d35468c69ba7c7be7c9d55e0dced9e77a3cf0b1b753176a557",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:46:33.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/4c42f09e84e6b00ee241c56509760c5c2324c9199d34103b7bdd18c708ef8502",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-08-18T15:48:24.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/4fb70780149357f902f0a9c1bba6e09558f90727e2e2b477935dea2ea22212f5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/32154818451"
    }
  ]
}