{
  "_id": "6a1d2b931d7bb097a0a38d6b",
  "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-06-01 06:37:22 UTC",
    "User": "root"
  },
  "Author": "Cory McCartan [aut, cre],\nJacob Brown [aut],\nKosuke Imai [aut]",
  "Maintainer": "Cory McCartan <cmccartan@g.harvard.edu>",
  "MD5sum": "496fad33f5ccbb7d7045fb6518239b76",
  "_user": "corymccartan",
  "_type": "src",
  "_file": "nbhdmodel_0.1.0.9000.tar.gz",
  "_fileid": "f50e56f27ec8217416bb86f2beeaa60d319085c62b3c58905d4a71f7001ff814",
  "_filesize": 123789,
  "_sha256": "f50e56f27ec8217416bb86f2beeaa60d319085c62b3c58905d4a71f7001ff814",
  "_created": "2026-06-01T06:37:22.000Z",
  "_published": "2026-06-01T06:49:55.828Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78799272582,
      "time": 229,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7324935248"
    },
    {
      "job": 78799272623,
      "time": 258,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7324942798"
    },
    {
      "job": 78799272604,
      "time": 228,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7324934743"
    },
    {
      "job": 78799272619,
      "time": 249,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7324940158"
    },
    {
      "job": 78799272594,
      "time": 147,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7324914397"
    },
    {
      "job": 78799272608,
      "time": 659,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7325050639"
    },
    {
      "job": 78799272588,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7324914136"
    },
    {
      "job": 78799272633,
      "time": 469,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7325000896"
    },
    {
      "job": 78798743979,
      "time": 263,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7324877373"
    },
    {
      "job": 78799272552,
      "time": 183,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 78799272568,
      "time": 267,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7324945315"
    },
    {
      "job": 78799272585,
      "time": 262,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7324943990"
    },
    {
      "job": 78799272572,
      "time": 293,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7324952270"
    }
  ],
  "_buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "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": [
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/nbhdmodel.html",
    "extra/readme.html",
    "extra/readme.md",
    "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",
    "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": "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"
    }
  ],
  "_score": 2.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "nbhdmodel",
  "_universes": [
    "corymccartan"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:40:54.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "8c59692b3604724ad07d45a83106c01a4cb351dc53c65d0d61ea9e95cae6f028",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:41:06.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "71b140eb4c8e84b31e322dafe9ffd873121f65afcbbba4c169300b9735a7c503",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:40:52.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "75e4a1af994ed415d7161ed976e569eee0ac684d0b5243a0c3a9f934caf7029c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:41:04.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "939d4c406c915b12aae2ce07c0c37f78a8ce579d2c8b57b1d8a70b28210d68e4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:39:53.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "700afcca81e2f44e6229dbd288497f483a0c71408b35efeb1401ab9e85a49075",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:44:02.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "1611add0387bc7d41eb4f26dae9991788bb1b129902d5309d82f26941150c792",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:39:58.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "c2e6d993fe523b7df37a3e46b89ff92863b60189e5172149eaf31b2d023394a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:42:43.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "94fb12a47f2b8f17e27c9870297ed503f6dc3b7e4837b187a79952c9eba819fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:40:15.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "5ec9106e8d5a08f992151f690eb06478f16a7898616bc253ad1273993d55eebf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:40:09.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "9e8b331db188cdfdd2838a8cbe9f0f70a73fb4a4b329f89ba29f1a55a62cb90c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-06-01T06:40:24.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "6a3c0e7465d21f6e0ae616d5bd04c6c9b395406e659a4fbadcd7843b2bcc434e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/26739136102"
    }
  ]
}