{
  "_id": "6a2e6d283efcd9bda43127d2",
  "Package": "hspm",
  "Type": "Package",
  "Title": "Heterogeneous Spatial Models",
  "Date": "2023-11-2",
  "Version": "1.1-5",
  "Authors@R": "c(person(\"Gianfranco\", \"Piras\", role = c(\"aut\", \"cre\"), \nemail = \"gpiras@mac.com\",\ncomment = c(ORCID = \"0000-0003-0225-6061\")),\nperson(\"Mauricio\", \"Sarrias\", role = c(\"aut\"),\nemail = \"msarrias86@gmail.com\",\ncomment = c(ORCID = \"0000-0001-5932-4817\")))",
  "Maintainer": "Gianfranco Piras <gpiras@mac.com>",
  "Description": "Spatial heterogeneity can be specified in various ways.\n'hspm' is an ambitious project that aims at implementing\nvarious methodologies to control for heterogeneity in spatial\nmodels. The current version of 'hspm' deals with spatial and\n(non-spatial) regimes models. In particular, the package allows\nto estimate a general spatial regimes model with additional\nendogenous variables, specified in terms of a spatial lag of\nthe dependent variable, the spatially lagged regressors, and,\npotentially, a spatially autocorrelated error term. Spatial\nregime models are estimated by instrumental variables and\ngeneralized methods of moments (see Arraiz et al., (2010)\n<doi:10.1111/j.1467-9787.2009.00618.x>, Bivand and Piras,\n(2015) <doi:10.18637/jss.v063.i18>, Drukker et al., (2013)\n<doi:10.1080/07474938.2013.741020>, Kelejian and Prucha, (2010)\n<doi:10.1016/j.jeconom.2009.10.025>).",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.2.3",
  "License": "GPL (>= 2)",
  "URL": "https://github.com/gpiras/hspm",
  "BugReports": "https://github.com/gpiras/hspm/issues",
  "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://gpiras.r-universe.dev",
  "Date/Publication": "2023-11-07 22:12:35 UTC",
  "RemoteUrl": "https://github.com/gpiras/hspm",
  "RemoteRef": "HEAD",
  "RemoteSha": "ba46eb679e9f69476b75c42a6074b14038da27c3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-14 08:54:02 UTC",
    "User": "root"
  },
  "Author": "Gianfranco Piras [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-0225-6061>),\nMauricio Sarrias [aut] (ORCID: <https://orcid.org/0000-0001-5932-4817>)",
  "MD5sum": "441cdec172e73f993599037ed3781c4c",
  "_user": "gpiras",
  "_type": "src",
  "_file": "hspm_1.1-5.tar.gz",
  "_fileid": "c05e1214ac3a8f47b401d15e7a46763da2d0d7627a4eae57bc2c3b30b6e6813e",
  "_filesize": 1446164,
  "_sha256": "c05e1214ac3a8f47b401d15e7a46763da2d0d7627a4eae57bc2c3b30b6e6813e",
  "_created": "2026-06-14T08:54:02.000Z",
  "_published": "2026-06-14T08:58:16.091Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 81264099260,
      "time": 184,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7619389336"
    },
    {
      "job": 81264099268,
      "time": 203,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7619392482"
    },
    {
      "job": 81264099218,
      "time": 211,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7619389520"
    },
    {
      "job": 81264099238,
      "time": 190,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7619385937"
    },
    {
      "job": 81263828701,
      "time": 253,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619364829"
    },
    {
      "job": 81264099194,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7619384424"
    },
    {
      "job": 81264099219,
      "time": 149,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7619384886"
    },
    {
      "job": 81264099258,
      "time": 169,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7619387612"
    },
    {
      "job": 81264099254,
      "time": 131,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7619382547"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/gpiras/hspm",
  "_commit": {
    "id": "ba46eb679e9f69476b75c42a6074b14038da27c3",
    "author": "Gianfranco Piras <gpiras@mac.com>",
    "committer": "Gianfranco Piras <gpiras@mac.com>",
    "message": "added reference, export make.intruments from spldv to avoid duplications\n",
    "time": 1699395155
  },
  "_maintainer": {
    "name": "Gianfranco Piras",
    "email": "gpiras@mac.com",
    "login": "gpiras",
    "twitter": "@gipiras",
    "description": "I am an Associate Professor of Economics at the University of Chieti-Pescara. My research focus on applied spatial econometrics and software development.  ",
    "uuid": 41392653,
    "orcid": "0000-0003-0225-6061"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0",
      "role": "Depends"
    },
    {
      "package": "Formula",
      "role": "Imports"
    },
    {
      "package": "sphet",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "spdep",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "maxLik",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "plm",
      "role": "Imports"
    },
    {
      "package": "spldv",
      "role": "Imports"
    },
    {
      "package": "splm",
      "role": "Suggests"
    }
  ],
  "_owner": "gpiras",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 5,
  "_contributors": [
    {
      "user": "gpiras",
      "count": 36,
      "uuid": 41392653
    },
    {
      "user": "mauricio1986",
      "count": 2,
      "uuid": 6963314
    }
  ],
  "_userbio": {
    "uuid": 41392653,
    "type": "user",
    "name": "Gianfranco Piras",
    "followers": 28,
    "description": "I am an Associate Professor of Economics at the University of Chieti-Pescara. My research focus on applied spatial econometrics and software development.  "
  },
  "_downloads": {
    "count": 220,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/hspm"
  },
  "_devurl": "https://github.com/gpiras/hspm",
  "_searchresults": 1,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/hspm.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/gpiras/hspm",
  "_realowner": "gpiras",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0-0",
      "date": "2022-11-18"
    },
    {
      "version": "1.1",
      "date": "2023-03-08"
    }
  ],
  "_exports": [
    "hsar2sls",
    "hsarML",
    "ivregimes",
    "regimes",
    "spregimes"
  ],
  "_datasets": [
    {
      "name": "baltim",
      "title": "Baltimore house sales prices and hedonics",
      "object": "baltim",
      "class": [
        "data.frame"
      ],
      "fields": [
        "STATION",
        "PRICE",
        "NROOM",
        "DWELL",
        "NBATH",
        "PATIO",
        "FIREPL",
        "AC",
        "BMENT",
        "NSTOR",
        "GAR",
        "AGE",
        "CITCOU",
        "LOTSZ",
        "SQFT",
        "X",
        "Y"
      ],
      "rows": 211,
      "table": true,
      "tojson": true
    },
    {
      "name": "natreg",
      "title": "US Counties Homicides data",
      "object": "natreg",
      "class": [
        "data.frame"
      ],
      "fields": [
        "REGIONS",
        "NOSOUTH",
        "POLY_ID",
        "NAME",
        "STATE_NAME",
        "STATE_FIPS",
        "CNTY_FIPS",
        "FIPS",
        "STFIPS",
        "COFIPS",
        "FIPSNO",
        "SOUTH",
        "HR60",
        "HR70",
        "HR80",
        "HR90",
        "HC60",
        "HC70",
        "HC80",
        "HC90",
        "PO60",
        "PO70",
        "PO80",
        "PO90",
        "RD60",
        "RD70",
        "RD80",
        "RD90",
        "PS60",
        "PS70",
        "PS80",
        "PS90",
        "UE60",
        "UE70",
        "UE80",
        "UE90",
        "DV60",
        "DV70",
        "DV80",
        "DV90",
        "MA60",
        "MA70",
        "MA80",
        "MA90",
        "POL60",
        "POL70",
        "POL80",
        "POL90",
        "DNL60",
        "DNL70",
        "DNL80",
        "DNL90",
        "MFIL59",
        "MFIL69",
        "MFIL79",
        "MFIL89",
        "FP59",
        "FP69",
        "FP79",
        "FP89",
        "BLK60",
        "BLK70",
        "BLK80",
        "BLK90",
        "GI59",
        "GI69",
        "GI79",
        "GI89",
        "FH60",
        "FH70",
        "FH80",
        "FH90",
        "West"
      ],
      "rows": 3085,
      "table": true,
      "tojson": true
    },
    {
      "name": "ws_6",
      "title": "Spatial weighting matrix for the US Counties Homicides data",
      "object": "ws_6",
      "class": [
        "dgCMatrix"
      ],
      "fields": [],
      "table": false,
      "tojson": false
    }
  ],
  "_help": [
    {
      "page": "baltim",
      "title": "Baltimore house sales prices and hedonics",
      "topics": [
        "baltim"
      ]
    },
    {
      "page": "hsar2sls",
      "title": "Estimation of HSAR models by 2SLS",
      "topics": [
        "hsar2sls",
        "print.summary.hsar2sls",
        "summary.hsar2sls"
      ]
    },
    {
      "page": "hsarML",
      "title": "Estimation of HSAR models by Quasi-Maximum Likelihood",
      "topics": [
        "coef.hsarML",
        "hsarML",
        "print.summary.hsarML",
        "summary.hsarML"
      ]
    },
    {
      "page": "ivregimes",
      "title": "Estimation of regime models with endogenous variables",
      "topics": [
        "ivregimes"
      ]
    },
    {
      "page": "natreg",
      "title": "US Counties Homicides data",
      "topics": [
        "natreg"
      ]
    },
    {
      "page": "regimes",
      "title": "Estimation of regimes models",
      "topics": [
        "regimes"
      ]
    },
    {
      "page": "spregimes",
      "title": "Estimation of spatial regimes models",
      "topics": [
        "coef.spregimes",
        "fitted.spregimes",
        "print.spregimes",
        "print.summary.spregimes",
        "residuals.spregimes",
        "spregimes",
        "summary.spregimes",
        "vcov.spregimes"
      ]
    },
    {
      "page": "ws_6",
      "title": "Spatial weighting matrix for the US Counties Homicides data",
      "topics": [
        "ws_6"
      ]
    }
  ],
  "_rundeps": [
    "abind",
    "backports",
    "bdsmatrix",
    "boot",
    "broom",
    "car",
    "carData",
    "checkmate",
    "class",
    "classInt",
    "cli",
    "coda",
    "codetools",
    "collapse",
    "colorspace",
    "cowplot",
    "cpp11",
    "data.table",
    "DBI",
    "deldir",
    "Deriv",
    "digest",
    "doBy",
    "dplyr",
    "e1071",
    "farver",
    "forecast",
    "Formula",
    "fracdiff",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "insight",
    "isoband",
    "jsonlite",
    "KernSmooth",
    "labeling",
    "lattice",
    "LearnBayes",
    "lifecycle",
    "lme4",
    "lmtest",
    "magrittr",
    "marginaleffects",
    "MASS",
    "Matrix",
    "MatrixModels",
    "maxLik",
    "memisc",
    "mgcv",
    "microbenchmark",
    "minqa",
    "miscTools",
    "modelr",
    "multcomp",
    "mvtnorm",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "pbkrtest",
    "pillar",
    "pkgconfig",
    "plm",
    "proxy",
    "purrr",
    "quantreg",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "Rdpack",
    "reformulas",
    "rlang",
    "s2",
    "S7",
    "sandwich",
    "scales",
    "sf",
    "sp",
    "SparseM",
    "spatialreg",
    "spData",
    "spdep",
    "sphet",
    "spldv",
    "stringi",
    "stringr",
    "survival",
    "TH.data",
    "tibble",
    "tidyr",
    "tidyselect",
    "timeDate",
    "units",
    "urca",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "wk",
    "yaml",
    "zoo"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "hspm",
  "_universes": [
    "gpiras"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.1-5",
      "date": "2026-06-14T08:56:26.000Z",
      "distro": "noble",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "94b4887e85354fa6001d46030dc1dddaf43761bd3b277604533c803f257b6778",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1-5",
      "date": "2026-06-14T08:56:45.000Z",
      "distro": "noble",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "3ce8a0e2cc7deaa1ebcf58bb660cc16e930fb7c92d40c83eefcaa9723c46fde0",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1-5",
      "date": "2026-06-14T08:56:42.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "2e9e78ef1596068d090fc16638f0259e70922173eafa35c4828eb9cabe058b16",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1-5",
      "date": "2026-06-14T08:56:13.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "aebee818d1d5de5ab3b2d0cb9609149a5bc2305b15b13f91457bb5b4fae09e46",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1-5",
      "date": "2026-06-14T08:56:50.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "b2c09013b26af83086332500e56549599be97d2148be3f636f179c9edfea5e52",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-06-14T08:55:40.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "dc0ae8fe7465da0999b6d4b286e36a663985749691f7a139c78bc1d51321fe83",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-06-14T08:55:49.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "8854f54b0e7257164f0e6ec9727f3444e61e0fc39f7ee9fa0cf55ac7bdd4899c",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-06-14T08:55:28.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "90b77495cc5fcfaf4184c8e1008c47b091218272c638264670a9dbb411fbbd50",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/27493734365"
    }
  ]
}