{
  "_id": "6a363f603efcd9bda43fba0d",
  "Package": "hgwrr",
  "Type": "Package",
  "Title": "Hierarchical and Geographically Weighted Regression",
  "Version": "0.6-2",
  "Date": "2025-09-24",
  "Authors@R": "c(person(given = \"Yigong\",\nfamily = \"Hu\",\nrole = c(\"aut\", \"cre\"),\nemail = \"yigong.hu@bristol.ac.uk\"),\nperson(given = \"Richard\",\nfamily = \"Harris\",\nrole = \"aut\"),\nperson(given = \"Richard\",\nfamily = \"Timmerman\",\nrole = \"aut\"))",
  "Maintainer": "Yigong Hu <yigong.hu@bristol.ac.uk>",
  "Description": "This model divides coefficients into three types, i.e.,\nlocal fixed effects, global fixed effects, and random effects\n(Hu et al., 2022)<doi:10.1177/23998083211063885>. If data have\nspatial hierarchical structures (especially are overlapping on\nsome locations), it is worth trying this model to reach better\nfitness.",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/HPDell/hgwrr/, https://hpdell.github.io/hgwrr/",
  "NeedsCompilation": "yes",
  "SystemRequirements": "GNU make",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.2.3",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "tidyverse, ggplot2, tmap, lme4, spdep, GWmodel",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nmake libssl-dev libproj-dev libsqlite3-dev libudunits2-dev",
  "Repository": "https://hpdell.r-universe.dev",
  "Date/Publication": "2026-04-21 08:18:02 UTC",
  "RemoteUrl": "https://github.com/hpdell/hgwrr",
  "RemoteRef": "HEAD",
  "RemoteSha": "27376766a9c4b9aadb2b6362f2847424c13d490e",
  "Packaged": {
    "Date": "2026-06-20 07:09:42 UTC",
    "User": "root"
  },
  "Author": "Yigong Hu [aut, cre],\nRichard Harris [aut],\nRichard Timmerman [aut]",
  "MD5sum": "e120ae598f6d32d829c39d78b99297c4",
  "_user": "hpdell",
  "_type": "src",
  "_file": "hgwrr_0.6-2.tar.gz",
  "_fileid": "f7812a3dc0ec650889e9bc30fc798c41e4908c13e5604c2a80edfb4a752697ba",
  "_filesize": 1170689,
  "_sha256": "f7812a3dc0ec650889e9bc30fc798c41e4908c13e5604c2a80edfb4a752697ba",
  "_created": "2026-06-20T07:09:42.000Z",
  "_published": "2026-06-20T07:21:04.754Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 82464438634,
      "time": 206,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7763126042"
    },
    {
      "job": 82464438627,
      "time": 248,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7763130789"
    },
    {
      "job": 82464438640,
      "time": 203,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763125793"
    },
    {
      "job": 82464438650,
      "time": 200,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763125063"
    },
    {
      "job": 82464438653,
      "time": 216,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7763123882"
    },
    {
      "job": 82464438632,
      "time": 368,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7763143280"
    },
    {
      "job": 82464438616,
      "time": 195,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763121953"
    },
    {
      "job": 82464438603,
      "time": 612,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763168433"
    },
    {
      "job": 82464183764,
      "time": 246,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763101805"
    },
    {
      "job": 82464438602,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763118056"
    },
    {
      "job": 82464438606,
      "time": 230,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7763129212"
    },
    {
      "job": 82464438617,
      "time": 298,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7763137011"
    },
    {
      "job": 82464438614,
      "time": 207,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7763125839"
    }
  ],
  "_buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/hpdell/hgwrr",
  "_commit": {
    "id": "27376766a9c4b9aadb2b6362f2847424c13d490e",
    "author": "Yigong Hu <huyg0180110559@outlook.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Hotfix: deprecated arma::pow usage (#35)\n\n* fix: deprecated arma::pow usage\n\n* version: patch\n\n* edit: cran submission (skip ci)",
    "time": 1776759482
  },
  "_maintainer": {
    "name": "Yigong Hu",
    "email": "yigong.hu@bristol.ac.uk",
    "login": "hpdell",
    "description": "A PhD student in University of Bristol. Have great interest in programming and mathematics. Working on GWmodel and GIS.",
    "uuid": 17842185
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "sf",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Depends"
    },
    {
      "package": "utils",
      "role": "Depends"
    },
    {
      "package": "MASS",
      "role": "Depends"
    },
    {
      "package": "Rcpp",
      "role": "LinkingTo"
    },
    {
      "package": "RcppArmadillo",
      "role": "LinkingTo"
    },
    {
      "package": "Rcpp",
      "version": ">= 1.0.8",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "furrr",
      "role": "Suggests"
    },
    {
      "package": "progressr",
      "role": "Suggests"
    }
  ],
  "_owner": "hpdell",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-17",
      "n": 1
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "hpdell",
      "count": 142,
      "uuid": 17842185
    }
  ],
  "_userbio": {
    "uuid": 17842185,
    "type": "user",
    "name": "Yigong Hu",
    "followers": 39,
    "description": "A PhD student in University of Bristol. Have great interest in programming and mathematics. Working on GWmodel and GIS."
  },
  "_downloads": {
    "count": 321,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hgwrr"
  },
  "_devurl": "https://github.com/hpdell/hgwrr",
  "_pkgdown": "https://hpdell.github.io/hgwrr/",
  "_searchresults": 7,
  "_topics": [
    "openblas",
    "gsl",
    "cpp",
    "openmp"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hgwrr.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hpdell/hgwrr",
  "_realowner": "hpdell",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2-1",
      "date": "2022-05-18"
    },
    {
      "version": "0.2-2",
      "date": "2022-05-20"
    },
    {
      "version": "0.2-3",
      "date": "2022-06-15"
    },
    {
      "version": "0.3-0",
      "date": "2023-05-26"
    },
    {
      "version": "0.4-0",
      "date": "2024-07-08"
    },
    {
      "version": "0.5-0",
      "date": "2024-07-28"
    },
    {
      "version": "0.6-0",
      "date": "2024-11-07"
    },
    {
      "version": "0.6-1",
      "date": "2024-11-16"
    },
    {
      "version": "0.6-2",
      "date": "2025-09-28"
    }
  ],
  "_exports": [
    "hgwr",
    "hgwr_fit",
    "make_dummy",
    "make_dummy_extract",
    "spatial_hetero_test",
    "spatial_hetero_test_data"
  ],
  "_datasets": [
    {
      "name": "mulsam.test",
      "title": "Simulated Spatial Multisampling Data For Test (DataFrame)",
      "object": "mulsam.test",
      "file": "mulsam.test.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "multisampling",
      "title": "Large Scale Simulated Spatial Multisampling Data (DataFrame)",
      "object": "multisampling",
      "file": "multisampling.rda",
      "class": [
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "wuhan.hp",
      "title": "Wuhan Second-hand House Price and POI Data (DataFrame)",
      "object": "wuhan.hp",
      "file": "wuhan.hp.rda",
      "class": [
        "sf",
        "data.frame"
      ],
      "fields": [
        "Price",
        "Floor.High",
        "Floor.Low",
        "Decoration.Fine",
        "PlateTower",
        "Steel",
        "BuildingArea",
        "Fee",
        "d.Commercial",
        "d.GreenLand",
        "d.Water",
        "d.University",
        "d.Kindergarten",
        "d.PrimarySchool",
        "d.MiddleSchool",
        "d.HighSchool",
        "d.SubwayStation",
        "d.Supermarket",
        "d.ShoppingMall",
        "lon",
        "lat",
        "group",
        "geometry"
      ],
      "rows": 19599,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "hgwrr-package",
      "title": "HGWR: Hierarchical and Geographically Weighted Regression",
      "topics": [
        "hgwrr-package"
      ]
    },
    {
      "page": "coef.hgwrm",
      "title": "Get estimated coefficients.",
      "topics": [
        "coef.hgwrm"
      ]
    },
    {
      "page": "fitted.hgwrm",
      "title": "Get fitted response.",
      "topics": [
        "fitted.hgwrm"
      ]
    },
    {
      "page": "logLik.hgwrm",
      "title": "Log likelihood function",
      "topics": [
        "logLik.hgwrm"
      ]
    },
    {
      "page": "make_dummy",
      "title": "Make Dummy Variables",
      "topics": [
        "make_dummy",
        "make_dummy_extract",
        "make_dummy_extract.character",
        "make_dummy_extract.default",
        "make_dummy_extract.factor",
        "make_dummy_extract.logical"
      ]
    },
    {
      "page": "mulsam.test",
      "title": "Simulated Spatial Multisampling Data For Test (DataFrame)",
      "topics": [
        "mulsam.test"
      ]
    },
    {
      "page": "multisampling",
      "title": "Large Scale Simulated Spatial Multisampling Data (DataFrame)",
      "topics": [
        "multisampling"
      ]
    },
    {
      "page": "print_table_md",
      "title": "Print a character matrix as a table.",
      "topics": [
        "print_table_md"
      ]
    },
    {
      "page": "print.hgwrm",
      "title": "Print description of a 'hgwrm' object.",
      "topics": [
        "print.hgwrm"
      ]
    },
    {
      "page": "print.spahetbootres",
      "title": "Print the result of spatial heterogeneity test",
      "topics": [
        "print.spahetbootres"
      ]
    },
    {
      "page": "print.summary.hgwrm",
      "title": "Print summary of an 'hgwrm' object.",
      "topics": [
        "print.summary.hgwrm"
      ]
    },
    {
      "page": "residuals.hgwrm",
      "title": "Get residuals.",
      "topics": [
        "residuals.hgwrm"
      ]
    },
    {
      "page": "spatial_hetero_test",
      "title": "Generic method to test spatial heterogeneity",
      "topics": [
        "spatial_hetero_test",
        "spatial_hetero_test.data.frame",
        "spatial_hetero_test.default",
        "spatial_hetero_test.matrix",
        "spatial_hetero_test.numeric",
        "spatial_hetero_test.sf",
        "spatial_hetero_test.vector"
      ]
    },
    {
      "page": "spatial_hetero_test_data",
      "title": "Test the spatial heterogeneity in data based on permutation.",
      "topics": [
        "spatial_hetero_test_data"
      ]
    },
    {
      "page": "hgwr",
      "title": "Hierarchical and Geographically Weighted Regression",
      "topics": [
        "hgwr",
        "hgwr.data.frame",
        "hgwr.sf",
        "hgwr_fit",
        "spatial_hetero_test.hgwrm"
      ]
    },
    {
      "page": "summary.hgwrm",
      "title": "Summary an 'hgwrm' object.",
      "topics": [
        "summary.hgwrm"
      ]
    },
    {
      "page": "wuhan.hp",
      "title": "Wuhan Second-hand House Price and POI Data (DataFrame)",
      "topics": [
        "wuhan.hp"
      ]
    }
  ],
  "_readme": "https://github.com/hpdell/hgwrr/raw/HEAD/README.md",
  "_rundeps": [
    "class",
    "classInt",
    "DBI",
    "e1071",
    "KernSmooth",
    "MASS",
    "proxy",
    "Rcpp",
    "RcppArmadillo",
    "s2",
    "sf",
    "units",
    "wk"
  ],
  "_sysdeps": [
    {
      "shlib": "liblapack",
      "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": "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": "libgsl",
      "package": "libgsl27",
      "headers": "libgsl-dev",
      "source": "gsl",
      "version": "2.7.1+dfsg-6ubuntu2",
      "name": "gsl",
      "homepage": "https://www.gnu.org/software/gsl",
      "description": "GNU Scientific Library (GSL) -- library package"
    },
    {
      "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"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "14.2.0-4ubuntu2~24.04.1",
      "name": "openmp",
      "homepage": "http://gcc.gnu.org/",
      "description": "GCC OpenMP (GOMP) support library"
    }
  ],
  "_vignettes": [
    {
      "source": "hgwrr.Rmd",
      "filename": "hgwrr.html",
      "title": "hgwrr",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Usage",
        "Model calibration",
        "formula",
        "data",
        "bw and kernel",
        "Results",
        "Further reading",
        "Model comparison",
        "Mathematical basis"
      ],
      "created": "2024-06-18 16:59:43",
      "modified": "2024-10-16 15:55:48",
      "commits": 5
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "hgwrr",
  "_universes": [
    "hpdell"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:40.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "e7330112f48d649f888ba46feb0a7f22be78de5a7d9eb2497e7c4bc98e622ec7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-06-20T07:13:07.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "3e198d3ad91e15f1a6f8cbf3a9e2ad2bbe38b8b85537e55cebe9bccaba8aa9d8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:35.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "bf8efecee0db193d3e093484fc9e625d7908599d187cc734d3b8b5ee905f66cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:25.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "44974ecf6665b1e1edc49a372e612195bbea8a1068d4629961be898c4353ff87",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:17.000Z",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "54226973577c5cc5b9518490fbc34e51bfa1d23de7e62622af877e6e07de8380",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-06-20T07:13:51.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "ea3add8a0595ee03b993d6f31ba4ca013a2c281cae8ac01954c66c08b814eb7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:05.000Z",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "6b31042cfb4d44ded35f6fa28916a500bcf409e2116101c4c384ea0322cb1961",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-06-20T07:16:00.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "ff13c7a903a8955e2266dfa337f1a56df5b8b2acdcbb068fe4c267a6bb7546e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:28.000Z",
      "arch": "emscripten",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "1f91ea394dcba97b15fe42ae1f2024f4b23cf30130f46ed9727170710b949a26",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:04.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "5249e4828af55f60523e26b2db134145524494fe47c99ad72312c2df69c71bf0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-06-20T07:12:55.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "31cac7c8f2ea3e8b04b2e561b08be9c63a7ecb59bc0ac93f7dd08a3e19caae06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-06-20T07:11:31.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "c9d2d90cb0afb371d0058f2275ccc785876449e09cb0dbba1727ce702c64fc0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/27863752267"
    }
  ]
}