{
  "_id": "6a5dc6639baadeef8ab5475e",
  "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-07-20 06:47:59 UTC",
    "User": "root"
  },
  "Author": "Yigong Hu [aut, cre],\nRichard Harris [aut],\nRichard Timmerman [aut]",
  "_user": "hpdell",
  "_type": "src",
  "_file": "hgwrr_0.6-2.tar.gz",
  "_fileid": "https://r2.ropensci.org/93178b7f8553485b602fc6aed4591e9bd34fdb1d4214fdc87d33f3e8448235f7",
  "_filesize": 1168481,
  "_sha256": "93178b7f8553485b602fc6aed4591e9bd34fdb1d4214fdc87d33f3e8448235f7",
  "_expires": "2026-10-28T06:55:29.000Z",
  "_created": "2026-07-20T06:47:59.000Z",
  "_published": "2026-07-20T06:55:31.539Z",
  "_jobs": [
    {
      "job": 88288946117,
      "time": 203,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8453029831"
    },
    {
      "job": 88288946132,
      "time": 218,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8453033066"
    },
    {
      "job": 88288946145,
      "time": 208,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453031601"
    },
    {
      "job": 88288946150,
      "time": 222,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453034505"
    },
    {
      "job": 88288946162,
      "time": 242,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8453033118"
    },
    {
      "job": 88288946138,
      "time": 388,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8453076081"
    },
    {
      "job": 88288946214,
      "time": 230,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453029515"
    },
    {
      "job": 88288946177,
      "time": 335,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453058171"
    },
    {
      "job": 88288373066,
      "time": 247,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8452970287"
    },
    {
      "job": 88288946108,
      "time": 146,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8453012219"
    },
    {
      "job": 88288946129,
      "time": 194,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8453026511"
    },
    {
      "job": 88288946121,
      "time": 191,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8453025969"
    },
    {
      "job": 88288946134,
      "time": 194,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8453026580"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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": 272,
    "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.1",
  "_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.32+ds-5",
      "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.32+ds-5",
      "name": "openblas",
      "homepage": "https://www.openblas.net/",
      "description": "Optimized BLAS (linear algebra) library (shared lib, pthread)"
    },
    {
      "shlib": "libgsl",
      "package": "libgsl28",
      "headers": "libgsl-dev",
      "source": "gsl",
      "version": "2.8+dfsg-6",
      "name": "gsl",
      "homepage": "https://www.gnu.org/software/gsl",
      "description": "GNU Scientific Library (GSL) -- library package"
    },
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    },
    {
      "shlib": "libgomp",
      "package": "libgomp1",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "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-07-20T06:50:59.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/8c3581903845a3aec6287cfc75937f08b31c7963476c0c8cc55df563d2978cbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-07-20T06:50:55.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/a027cae167c867934b46c086b772ce17971f57341a7821603653f377e80e184d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-07-20T06:51:04.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/2fce2172984f78936da0c5f6066e1caf39448b528180e3f889226bbc21f9536d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.6-2",
      "date": "2026-07-20T06:51:00.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/f8e2a1c8ff1a2d815b9a9901c6776fb53ad64ee43873d173f974ca8928cf5fba",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-07-20T06:50:58.000Z",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/7fcdc2430425dfc6b914ed3b20959d9d2166f88d31021df94859069ff81898d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-07-20T06:52:21.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/7ac7ab4f0ce9c838fce407fb7627e6b2ff8e494c415a23aff6debd1e350f33fd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-07-20T06:50:39.000Z",
      "arch": "aarch64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/0858e0fd9deb1a1932e9dec93e53d5c2e1f7f704ba0ae5fbdb7191758c52a659",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.6-2",
      "date": "2026-07-20T06:51:44.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/24cd9262c1cb081e6b96fb4ebb0715a2372c832d94404020412b5c80088afd8e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.6-2",
      "date": "2026-07-20T06:50:51.000Z",
      "arch": "emscripten",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/aaa05ed293db24d25e3f9e4f3110359cf84eb4ebae27710b8ed910aa4f06e0e3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-07-20T06:49:39.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/fb1c2e295b14dacbfd5c4d367712acfa38d668d17347b1d0d9bdf007967d3c7f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-07-20T06:49:42.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/6beb077563faef08937f6f18dd10b2341067f6af825e8e9592b60e3e0ef6a849",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.6-2",
      "date": "2026-07-20T06:49:41.000Z",
      "arch": "x86_64",
      "commit": "27376766a9c4b9aadb2b6362f2847424c13d490e",
      "fileid": "https://r2.ropensci.org/5e4fb631bb5ef638967a4620c0a323f3dd16be62ebd91e3a3f8a5c067c85080d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hpdell/actions/runs/29722519732"
    }
  ]
}