{
  "_id": "6a13fc39acfb0bcc41d3642f",
  "Package": "SpatialInference",
  "Title": "Tools for Statistical Inference with Geo-Coded Data",
  "Version": "0.1.0",
  "Authors@R": "person(given = \"Alexander\",\nfamily = \"Lehner\",\nrole = c(\"aut\", \"cre\"),\nemail = \"alehner@worldbank.org\",\ncomment = c(ORCID = \"0000-0001-5885-5966\"))",
  "Description": "Fast computation of Conley (1999)\n<doi:10.1016/S0304-4076(98)00084-0> spatial heteroskedasticity\nand autocorrelation consistent (HAC) standard errors for linear\nregression models with geo-coded data, with a fast C++\nimplementation by Christensen, Hartman, and Samii (2021)\n<doi:10.1017/S0020818321000187>. Performance-critical distance\ncalculations, kernel weighting, and variance component\naccumulation are implemented in C++ via 'Rcpp' and\n'RcppArmadillo'. Includes tools for estimating the spatial\ncorrelation range from covariograms and correlograms following\nthe bandwidth selection method proposed in Lehner (2026)\n<doi:10.48550/arXiv.2603.03997>, and diagnostic visualizations\nfor bandwidth selection.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/axlehner/SpatialInference",
  "BugReports": "https://github.com/axlehner/SpatialInference/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibssl-dev libproj-dev libsqlite3-dev libudunits2-dev",
  "Repository": "https://axlehner.r-universe.dev",
  "Date/Publication": "2026-03-21 03:45:51 UTC",
  "RemoteUrl": "https://github.com/axlehner/spatialinference",
  "RemoteRef": "HEAD",
  "RemoteSha": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-25 07:32:18 UTC",
    "User": "root"
  },
  "Author": "Alexander Lehner [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-5885-5966>)",
  "Maintainer": "Alexander Lehner <alehner@worldbank.org>",
  "MD5sum": "1c44e26ec2b594991a239e8637566608",
  "_user": "axlehner",
  "_type": "src",
  "_file": "SpatialInference_0.1.0.tar.gz",
  "_fileid": "a00689f5a30cab24e4ce273fd1b1ac760cbe3231d4f4f8a27e0f4a27efd6a74e",
  "_filesize": 2438383,
  "_sha256": "a00689f5a30cab24e4ce273fd1b1ac760cbe3231d4f4f8a27e0f4a27efd6a74e",
  "_created": "2026-05-25T07:32:18.000Z",
  "_published": "2026-05-25T07:37:29.228Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77674128995,
      "time": 167,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193779418"
    },
    {
      "job": 77674128972,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193779220"
    },
    {
      "job": 77674128977,
      "time": 168,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193779512"
    },
    {
      "job": 77674128991,
      "time": 175,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193781342"
    },
    {
      "job": 77674128979,
      "time": 178,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193775774"
    },
    {
      "job": 77674128981,
      "time": 269,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193801402"
    },
    {
      "job": 77674128974,
      "time": 136,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193766736"
    },
    {
      "job": 77674128984,
      "time": 265,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193798767"
    },
    {
      "job": 77673586446,
      "time": 270,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193736902"
    },
    {
      "job": 77674128973,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193773818"
    },
    {
      "job": 77674128969,
      "time": 151,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7193776097"
    },
    {
      "job": 77674128986,
      "time": 149,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7193774391"
    },
    {
      "job": 77674128998,
      "time": 154,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7193775720"
    }
  ],
  "_buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/axlehner/spatialinference",
  "_commit": {
    "id": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
    "author": "axlehner <ax.lehner@gmail.com>",
    "committer": "axlehner <ax.lehner@gmail.com>",
    "message": "address autocheck notes\n",
    "time": 1774064751
  },
  "_maintainer": {
    "name": "Alexander Lehner",
    "email": "alehner@worldbank.org",
    "login": "axlehner",
    "twitter": "@axlehner",
    "description": "",
    "uuid": 16270160,
    "orcid": "0000-0001-5885-5966"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "lfe",
      "role": "Suggests"
    },
    {
      "package": "fixest",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "stringr",
      "role": "Suggests"
    },
    {
      "package": "spdep",
      "role": "Suggests"
    },
    {
      "package": "ncf",
      "role": "Suggests"
    },
    {
      "package": "gstat",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "modelsummary",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "geosphere",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "axlehner",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-08",
      "n": 1
    },
    {
      "week": "2026-09",
      "n": 6
    },
    {
      "week": "2026-12",
      "n": 10
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "axlehner",
      "count": 55,
      "uuid": 16270160
    },
    {
      "user": "agordon73",
      "count": 2,
      "uuid": 121909059
    }
  ],
  "_userbio": {
    "uuid": 16270160,
    "type": "user",
    "name": "Alex Lehner"
  },
  "_downloads": {
    "count": 187,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/SpatialInference"
  },
  "_devurl": "https://github.com/axlehner/spatialinference",
  "_searchresults": 0,
  "_topics": [
    "openblas",
    "cpp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/SpatialInference.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/axlehner/spatialinference",
  "_realowner": "axlehner",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-03-25"
    }
  ],
  "_exports": [
    ":=",
    "%>%",
    "Bal_XeeXhC",
    "compute_conley_lfe",
    "conley_SE",
    "coords_as_columns",
    "covgm_range",
    "DistMat",
    "extract_corr_range",
    "gravity_centroid",
    "grid_FE",
    "inverseu_plot_conleyrange",
    "lm_sac",
    "TimeDist",
    "XeeXhC",
    "XeeXhC_Lg"
  ],
  "_datasets": [
    {
      "name": "US_counties_centroids",
      "title": "Centroids of Contiguous US Counties (2017)",
      "object": "US_counties_centroids",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "STATEFP",
        "COUNTYFP",
        "COUNTYNS",
        "GEOID",
        "NAME",
        "NAMELSAD",
        "LSAD",
        "CLASSFP",
        "MTFCC",
        "CSAFP",
        "CBSAFP",
        "METDIVFP",
        "FUNCSTAT",
        "ALAND",
        "AWATER",
        "INTPTLAT",
        "INTPTLON",
        "GISJOIN",
        "Shape_Leng",
        "Shape_Area",
        "noise1",
        "noise2",
        "dist",
        "share_asian",
        "share_black",
        "share_tworace",
        "share_hispanic",
        "AH1PE001",
        "AH1PM001",
        "lon",
        "lat",
        "geom",
        "year",
        "unit"
      ],
      "rows": 3108,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "Bal_XeeXhC",
      "title": "Spatial Variance Component for Balanced Panel",
      "topics": [
        "Bal_XeeXhC"
      ]
    },
    {
      "page": "compute_conley_lfe",
      "title": "Compute Conley Standard Error for a Single Coefficient",
      "topics": [
        "compute_conley_lfe"
      ]
    },
    {
      "page": "conley_SE",
      "title": "Conley Spatial HAC Variance-Covariance Estimation",
      "topics": [
        "conley_SE"
      ]
    },
    {
      "page": "coords_as_columns",
      "title": "Extract Coordinates as Columns from an sf Object",
      "topics": [
        "coords_as_columns"
      ]
    },
    {
      "page": "covgm_range",
      "title": "Covariogram Range Estimation and Visualization",
      "topics": [
        "covgm_range"
      ]
    },
    {
      "page": "DistMat",
      "title": "Create Distance Matrix",
      "topics": [
        "DistMat"
      ]
    },
    {
      "page": "extract_corr_range",
      "title": "Extract Correlation Range from a Correlogram or Covariogram",
      "topics": [
        "extract_corr_range"
      ]
    },
    {
      "page": "gravity_centroid",
      "title": "Weighted Mean Centre (Centre of Gravity)",
      "topics": [
        "gravity_centroid"
      ]
    },
    {
      "page": "grid_FE",
      "title": "Create Spatial Grid Fixed Effects",
      "topics": [
        "grid_FE"
      ]
    },
    {
      "page": "inverseu_plot_conleyrange",
      "title": "Inverse-U Plot of Conley Standard Errors vs. Cutoff Distance",
      "topics": [
        "inverseu_plot_conleyrange"
      ]
    },
    {
      "page": "lm_sac",
      "title": "Linear Model with Spatial Autocorrelation Diagnostics",
      "topics": [
        "lm_sac"
      ]
    },
    {
      "page": "TimeDist",
      "title": "Temporal Variance Component (Time Dimension)",
      "topics": [
        "TimeDist"
      ]
    },
    {
      "page": "US_counties_centroids",
      "title": "Centroids of Contiguous US Counties (2017)",
      "topics": [
        "US_counties_centroids"
      ]
    },
    {
      "page": "XeeXhC",
      "title": "Spatial Variance Component (X'ee'X)",
      "topics": [
        "XeeXhC"
      ]
    },
    {
      "page": "XeeXhC_Lg",
      "title": "Spatial Variance Component for Large Datasets",
      "topics": [
        "XeeXhC_Lg"
      ]
    }
  ],
  "_readme": "https://github.com/axlehner/spatialinference/raw/HEAD/README.md",
  "_rundeps": [
    "class",
    "classInt",
    "cli",
    "data.table",
    "DBI",
    "e1071",
    "glue",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "MASS",
    "pillar",
    "pkgconfig",
    "proxy",
    "Rcpp",
    "RcppArmadillo",
    "rlang",
    "s2",
    "sf",
    "tibble",
    "units",
    "utf8",
    "vctrs",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "libblas",
      "package": "libopenblas0-pthread",
      "source": "openblas",
      "version": "0.3.26+ds-1ubuntu0.1",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "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"
    }
  ],
  "_vignettes": [
    {
      "source": "spatial_HAC.Rmd",
      "filename": "spatial_HAC.html",
      "title": "Bandwidth Selection and Conley Spatial HAC Standard Errors",
      "author": "Alexander Lehner",
      "engine": "knitr::knitr",
      "headings": [
        "Overview",
        "Setup",
        "Simulated spatially correlated data",
        "The spurious regression problem",
        "Estimating the correlation range",
        "The inverse-U relationship",
        "Computing Conley standard errors",
        "Convenience wrappers",
        "Kernel choices",
        "References"
      ],
      "created": "2021-02-12 16:22:51",
      "modified": "2026-03-16 02:47:18",
      "commits": 9
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "spatialinference",
  "_universes": [
    "axlehner"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "d9c087bf7d25ddeb1f723277ae55ca079462b646e44216e6cb4cc980b4820d6a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-25T07:34:56.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "14f1256c06811378ecd8a6deb66bf5f7bf15f007cdcfdab457a01de0ced273a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:00.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "a00a91ec2c88c9324bc5a7136ccda5038cdae2695c0799d57828273e9b534ca2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:03.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "a7bc5ac886c31a9a1599b0585ee57761546d675a3e2c766325038e61b3dcadd5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-25T07:34:50.000Z",
      "arch": "aarch64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "b086171e97057fcf653e021e6400913b88b05517b257ca560cc7f5180de78f37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:58.000Z",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "8e91038e9ef35791ff0fb12e4e9c448c3c3b10db60a26f2b58d3648529082fe5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-25T07:34:21.000Z",
      "arch": "aarch64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "0afdc3baf9055a7a90faeac7cfba2b57c21463a5275390d2de5e80e5ff692015",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:42.000Z",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "d122638f1a4c41ee8c44f6f7e857b15530de461ab66494d84fb06d7e8b186b5b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-05-25T07:35:04.000Z",
      "arch": "emscripten",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "f0603ae3b736e2a4c50837e12ed5c46ee8c3c25b524b8439375b3c3614e13b84",
      "status": "success",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-25T07:34:17.000Z",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "32e01e717c8b837c51e73307d5f31391423dc5470d0e204e6a52ed6002efc27e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-25T07:33:57.000Z",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "52ca177820c574d10a992378c3cdf57c2dbe565b67afd15d40bfb40400aa65e6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-05-25T07:34:14.000Z",
      "arch": "x86_64",
      "commit": "5bc0beeb63d19fc369cae304021b2a6b1440aca9",
      "fileid": "b80f97999a1f7f8c11f8cf3389ac59166fc20537b544380a0d02cc4d9a1778cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/axlehner/actions/runs/26388876665"
    }
  ]
}