{
  "_id": "6a1f317fb401979e73427b80",
  "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-05-15 08:24:08 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": "e779d4cdc5d26cf5cb93d7240d665a72",
  "_user": "gpiras",
  "_type": "src",
  "_file": "hspm_1.1-5.tar.gz",
  "_fileid": "a1b3f4599be7477cbd350aa6c5830e26bbfa39c096b76c7c125d0426194373fa",
  "_filesize": 1443540,
  "_sha256": "a1b3f4599be7477cbd350aa6c5830e26bbfa39c096b76c7c125d0426194373fa",
  "_created": "2026-05-15T08:24:08.000Z",
  "_published": "2026-06-02T19:39:43.915Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79156574457,
      "time": 189,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7013058961"
    },
    {
      "job": 79156574494,
      "time": 203,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7013062207"
    },
    {
      "job": 79156574442,
      "time": 206,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7013058143"
    },
    {
      "job": 79156574482,
      "time": 233,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7013062485"
    },
    {
      "job": 79156573643,
      "time": 266,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7013010263"
    },
    {
      "job": 79156573655,
      "time": 133,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7367997157"
    },
    {
      "job": 79156574167,
      "time": 146,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "WARNING",
      "artifact": "7013048071"
    },
    {
      "job": 79156574508,
      "time": 132,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "WARNING",
      "artifact": "7013044354"
    },
    {
      "job": 79156574711,
      "time": 136,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "WARNING",
      "artifact": "7013045259"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334",
  "_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",
    "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",
    "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": 209,
    "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-05-15T08:26:41.000Z",
      "distro": "noble",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "b56cf7cfb23dbd79a94b958782623808f38671193d5ec963750724885429cffa",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.1-5",
      "date": "2026-05-15T08:26:59.000Z",
      "distro": "noble",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "ad2c321d762fc3a6b9e12eab2adc01569bdcd03b74674221459d1fb4b64cddc4",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.1-5",
      "date": "2026-05-15T08:26:54.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "a27eddb3a74210d7d2e3e1d46eb077bc851242ec6d44f3e420e8b78c39b675f5",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.1-5",
      "date": "2026-05-15T08:26:53.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "8c890bd2744cad194d1a18b92d4c0bf3bd8958eaef5c17622e67f08c25a25c82",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-05-15T08:25:42.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "3d10f8c3798d50afed9a183168eea2d433913442428ae17527e4d2c18e72ead3",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-05-15T08:25:36.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "345c26f578ea1554d59a2d1a71c624d229116a37e88dcf63def44c214d98adfc",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.1-5",
      "date": "2026-05-15T08:25:40.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "35d330ba599c04f388e957823c3f2dacc94d69a2641e0229c32ecba65b25f273",
      "status": "success",
      "check": "WARNING",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.1-5",
      "date": "2026-06-02T19:39:25.000Z",
      "commit": "ba46eb679e9f69476b75c42a6074b14038da27c3",
      "fileid": "6b97771e21bb9780c3537517519693a6d12d4b91cfac9ac2572de1731ce970c8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gpiras/actions/runs/25907825334"
    }
  ]
}