{
  "_id": "6a49750c424221e3da02e7e2",
  "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-07-04 20:51:56 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/fce5f4de6656108126dced1b96f06d5f8275c6d8a9e5e8c3b801059ec4d15da5",
  "_filesize": 125616,
  "_sha256": "fce5f4de6656108126dced1b96f06d5f8275c6d8a9e5e8c3b801059ec4d15da5",
  "_expires": "2026-10-12T21:03:07.000Z",
  "_created": "2026-07-04T20:51:56.000Z",
  "_published": "2026-07-04T21:03:08.751Z",
  "_jobs": [
    {
      "job": 85166157457,
      "time": 233,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8085364733"
    },
    {
      "job": 85166157460,
      "time": 259,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8085367083"
    },
    {
      "job": 85166157445,
      "time": 276,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085369692"
    },
    {
      "job": 85166157444,
      "time": 248,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085365965"
    },
    {
      "job": 85166157439,
      "time": 134,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8085353037"
    },
    {
      "job": 85166157448,
      "time": 571,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8085402839"
    },
    {
      "job": 85166157446,
      "time": 205,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085361095"
    },
    {
      "job": 85166157442,
      "time": 338,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085376150"
    },
    {
      "job": 85165864197,
      "time": 264,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085337349"
    },
    {
      "job": 85166157452,
      "time": 227,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 85166157429,
      "time": 263,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8085367577"
    },
    {
      "job": 85166157428,
      "time": 266,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8085368021"
    },
    {
      "job": 85166157425,
      "time": 245,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8085365603"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487",
  "_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": [
    "cpp"
  ],
  "_rbuild": "4.6.1",
  "_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",
    "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": "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"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:55:47.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/51e7aacbdd9ca70fb0570d3930e830c79346ea195c7ce895a7f59fef9bed7b81",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:55:49.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/3b134f09294b70833518d001c30aa9639b384bb3992588ff901929bab3ec71a1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:56:26.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/acfb7c45a4197848959b52c3602611af66f721e74e0e39520947c336ed093156",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:55:41.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/f19db2467a51a8aa9b10e1f751f9abb7e109ad48cc19ee357937587d7d230fce",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:54:27.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/71835b901a7752f8b1193ba2644f48881dbc061321b9c06ca57e8ec0809507c3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:58:09.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/8a42967a4da05fc04c186f5ba2e3f50c23c083039b8b6868e45bcbbb7806d620",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:54:59.000Z",
      "arch": "aarch64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/57e565a082489c00b94cb8e75a175ca27cf77cd11b78f2d1fc57cd55ce16368e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:55:52.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/e99323657458952419439bbbcb4e2509ba163cc4303d81d6552ba4698bbba87d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:54:48.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/bdec87e1d79df24d3809ece90193dab95b6d6362a5f1e1b15a67db960d3e7bf9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:54:59.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/45c06abbb891d660de165ff89a9a4a629f13da5298f58bf1fb74248f8e8d7baa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-07-04T20:54:36.000Z",
      "arch": "x86_64",
      "commit": "6e7d39e648997ca57c9bd14d833337617c2211d6",
      "fileid": "https://r2.ropensci.org/0a3d4526ba27bf83356281380c3ffc5b75ec865d7bfd86e877972b2cfe8fcc3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/corymccartan/actions/runs/28719219487"
    }
  ]
}