{
  "_id": "6ac21530773a0037682c1a09",
  "Package": "WALS",
  "Version": "0.2.6",
  "Date": "2025-07-11",
  "Title": "Weighted-Average Least Squares Model Averaging",
  "Authors@R": "person(\"Kevin\", \"Huynh\", email = \"kevin.huynh-dev@gmx.ch\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-4621-2274\"))",
  "Description": "Implements Weighted-Average Least Squares model averaging\nfor negative binomial regression models of Huynh (2024)\n<doi:10.48550/arXiv.2404.11324>, generalized linear models of\nDe Luca, Magnus, Peracchi (2018)\n<doi:10.1016/j.jeconom.2017.12.007> and linear regression\nmodels of Magnus, Powell, Pruefer (2010)\n<doi:10.1016/j.jeconom.2009.07.004>, see also Magnus, De Luca\n(2016) <doi:10.1111/joes.12094>. Weighted-Average Least Squares\nfor the linear regression model is based on the original\n'MATLAB' code by Magnus and De Luca\n<https://www.janmagnus.nl/items/WALS.pdf>, see also Kumar,\nMagnus (2013) <doi:10.1007/s13571-013-0060-9> and De Luca,\nMagnus (2011) <doi:10.1177/1536867X1201100402>.",
  "License": "GPL-2 | GPL-3",
  "URL": "https://github.com/kevhuy/WALS",
  "BugReports": "https://github.com/kevhuy/WALS/issues",
  "LazyData": "true",
  "RdMacros": "Rdpack",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Repository": "https://kevhuy.r-universe.dev",
  "Date/Publication": "2025-07-11 20:53:37 UTC",
  "RemoteUrl": "https://github.com/kevhuy/wals",
  "RemoteRef": "HEAD",
  "RemoteSha": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-04 08:32:45 UTC",
    "User": "root"
  },
  "Author": "Kevin Huynh [aut, cre] (ORCID: <https://orcid.org/0000-0002-4621-2274>)",
  "Maintainer": "Kevin Huynh <kevin.huynh-dev@gmx.ch>",
  "_user": "kevhuy",
  "_type": "src",
  "_file": "WALS_0.2.6.tar.gz",
  "_fileid": "https://r2.ropensci.org/18ec98e7c026b7ff930570ea66d24ee98ab297d8dabdabd2543f0f0d45311700",
  "_filesize": 633417,
  "_sha256": "18ec98e7c026b7ff930570ea66d24ee98ab297d8dabdabd2543f0f0d45311700",
  "_expires": "2027-01-12T08:58:22.000Z",
  "_created": "2026-10-04T08:32:45.000Z",
  "_published": "2026-10-04T08:58:24.432Z",
  "_jobs": [
    {
      "job": 111397912915,
      "time": 130,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11298318814"
    },
    {
      "job": 111397912949,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11298059481"
    },
    {
      "job": 111397913038,
      "time": 183,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11298338872"
    },
    {
      "job": 111397912928,
      "time": 134,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11298795565"
    },
    {
      "job": 111397426644,
      "time": 171,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11298163998"
    },
    {
      "job": 111397912966,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11297518746"
    },
    {
      "job": 111397912940,
      "time": 84,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11297809848"
    },
    {
      "job": 111397913001,
      "time": 84,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11298323757"
    },
    {
      "job": 111397912945,
      "time": 83,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11297538734"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069",
  "_status": "success",
  "_upstream": "https://github.com/kevhuy/wals",
  "_commit": {
    "id": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
    "author": "kevhuy <kevin.huynh@unibas.ch>",
    "committer": "kevhuy <kevin.huynh@unibas.ch>",
    "message": "Bump to v0.2.6: updated email address.\n",
    "time": 1752267217
  },
  "_maintainer": {
    "name": "Kevin Huynh",
    "email": "kevin.huynh-dev@gmx.ch",
    "login": "kevhuy",
    "description": "",
    "uuid": 20842459,
    "orcid": "0000-0002-4621-2274"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "Formula",
      "version": ">= 1.2-3",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "version": ">= 7.3-51.6",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "version": ">= 2.1.3",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "AER",
      "role": "Suggests"
    },
    {
      "package": "BayesVarSel",
      "role": "Suggests"
    },
    {
      "package": "BMS",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.1.10",
      "role": "Suggests"
    }
  ],
  "_owner": "kevhuy",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 1,
  "_contributors": [
    {
      "user": "kevhuy",
      "count": 260,
      "uuid": 20842459
    }
  ],
  "_userbio": {
    "uuid": 20842459,
    "type": "user",
    "name": "kevhuy",
    "followers": 3
  },
  "_downloads": {
    "count": 261,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/WALS"
  },
  "_devurl": "https://github.com/kevhuy/wals",
  "_searchresults": 6,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/WALS.html"
  ],
  "_homeurl": "https://github.com/kevhuy/wals",
  "_realowner": "kevhuy",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.3",
      "date": "2023-09-22"
    },
    {
      "version": "0.2.4",
      "date": "2023-11-03"
    },
    {
      "version": "0.2.5",
      "date": "2024-06-21"
    },
    {
      "version": "0.2.6",
      "date": "2025-07-13"
    }
  ],
  "_exports": [
    "binomialWALS",
    "controlGLM",
    "controlNB",
    "familyPrior",
    "familyWALS",
    "laplace",
    "negbinFixedWALS",
    "negbinWALS",
    "poissonWALS",
    "subbotin",
    "wals",
    "walsFit",
    "walsGLM",
    "walsGLMfit",
    "walsGLMfitIterate",
    "walsNB",
    "walsNBfit",
    "walsNBfitIterate",
    "weibull"
  ],
  "_datasets": [
    {
      "name": "GrowthMP",
      "title": "Determinants of Economic Growth",
      "object": "GrowthMP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "gdpgrowth",
        "lgdp60",
        "yrsopen",
        "mining",
        "primexp70",
        "invest",
        "rerd",
        "school60",
        "life60",
        "popgrowth",
        "war",
        "revcoup",
        "rights",
        "civil",
        "out",
        "capitalism",
        "colony",
        "english",
        "foreign",
        "frac",
        "protestant",
        "catholic",
        "muslim",
        "area",
        "abslat"
      ],
      "rows": 37,
      "table": true,
      "tojson": true
    },
    {
      "name": "GrowthMPP",
      "title": "Determinants of Economic Growth",
      "object": "GrowthMPP",
      "class": [
        "data.frame"
      ],
      "fields": [
        "country",
        "gdpgrowth",
        "lgdp60",
        "equipinv",
        "school60",
        "life60",
        "popgrowth",
        "law",
        "tropics",
        "avelf",
        "confucian"
      ],
      "rows": 74,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "checkSingularitySVD",
      "title": "Internal function: Check singularity of SVDed matrix",
      "topics": [
        "checkSingularitySVD"
      ]
    },
    {
      "page": "computeGamma1",
      "title": "Internal function: Compute model-averaged estimator of focus regressors in walsNB",
      "topics": [
        "computeGamma1"
      ]
    },
    {
      "page": "computeGamma1r",
      "title": "Internal function: Computes fully restricted one-step ML estimator for transformed regressors in walsNB",
      "topics": [
        "computeGamma1r"
      ]
    },
    {
      "page": "computeGammaUnSVD",
      "title": "Internal function: Computes unrestricted one-step ML estimator for transformed regressors in walsNB",
      "topics": [
        "computeGammaUnSVD"
      ]
    },
    {
      "page": "computePosterior",
      "title": "Internal function: Compute posterior mean and variance of normal location problem",
      "topics": [
        "computePosterior",
        "computePosterior.familyPrior",
        "computePosterior.familyPrior_laplace"
      ]
    },
    {
      "page": "computeX2M1X2",
      "title": "Internal function: Computes X2M1X2 for walsNB when SVD is applied to Z1",
      "topics": [
        "computeX2M1X2"
      ]
    },
    {
      "page": "controlGLM",
      "title": "Control function for initial GLM fit",
      "topics": [
        "controlGLM"
      ]
    },
    {
      "page": "controlNB",
      "title": "Control function for initial NB fit",
      "topics": [
        "controlNB"
      ]
    },
    {
      "page": "ddweibull",
      "title": "Internal function: double (reflected) Weibull density",
      "topics": [
        "ddweibull"
      ]
    },
    {
      "page": "dlaplace",
      "title": "Internal function: Laplace density",
      "topics": [
        "dlaplace"
      ]
    },
    {
      "page": "dsubbotin",
      "title": "Internal function: Subbotin density",
      "topics": [
        "dsubbotin"
      ]
    },
    {
      "page": "familyPrior",
      "title": "Family Objects for Prior Distributions in WALS",
      "topics": [
        "familyPrior",
        "familyPrior.wals",
        "familyPrior_laplace",
        "laplace",
        "print.familyPrior",
        "subbotin",
        "weibull"
      ]
    },
    {
      "page": "familyWALS",
      "title": "Extended Family Objects for Models",
      "topics": [
        "binomialWALS",
        "familyNBWALS",
        "familyWALS",
        "familyWALS.walsGLM",
        "familyWALScount",
        "negbinFixedWALS",
        "negbinWALS",
        "poissonWALS"
      ]
    },
    {
      "page": "fitNB2",
      "title": "Internal function: Fits a NB2 regression via maximum likelihood with log-link for mean and dispersion parameter.",
      "topics": [
        "fitNB2"
      ]
    },
    {
      "page": "gammaToBeta",
      "title": "Internal function: Transform gammas back to betas",
      "topics": [
        "gammaToBeta"
      ]
    },
    {
      "page": "GrowthMP",
      "title": "Determinants of Economic Growth",
      "topics": [
        "GrowthMP"
      ]
    },
    {
      "page": "GrowthMPP",
      "title": "Determinants of Economic Growth",
      "topics": [
        "GrowthMPP"
      ]
    },
    {
      "page": "negativeBinomial",
      "title": "Negative binomial family",
      "topics": [
        "negativeBinomial"
      ]
    },
    {
      "page": "predict.wals",
      "title": "Methods for wals and walsMatrix Objects",
      "topics": [
        "coef.wals",
        "fitted.wals",
        "model.matrix.wals",
        "nobs.wals",
        "predict.wals",
        "predict.walsMatrix",
        "print.summary.wals",
        "print.wals",
        "residuals.wals",
        "summary.wals",
        "terms.wals",
        "vcov.wals"
      ]
    },
    {
      "page": "predict.walsGLM",
      "title": "Methods for walsGLM, walsGLMmatrix, walsNB and walsNBmatrix Objects",
      "topics": [
        "logLik.walsGLM",
        "predict.walsGLM",
        "predict.walsGLMmatrix",
        "print.summary.walsGLM",
        "print.summary.walsNB",
        "print.walsGLM",
        "residuals.walsGLM",
        "summary.walsGLM",
        "summary.walsNB"
      ]
    },
    {
      "page": "predictCounts",
      "title": "Internal methods: Predict probability for counts",
      "topics": [
        "predictCounts",
        "predictCounts.familyWALScount"
      ]
    },
    {
      "page": "semiorthogonalize",
      "title": "Internal function: Semiorthogonal-type transformation of X2 to Z2",
      "topics": [
        "semiorthogonalize"
      ]
    },
    {
      "page": "snbinom",
      "title": "Internal function: first derivatives of NB2 PMF",
      "topics": [
        "snbinom"
      ]
    },
    {
      "page": "svdLSplus",
      "title": "Internal function: Uses SVD components to compute final estimate via Sherman-Morrison-Woodbury formula.",
      "topics": [
        "svdLSplus"
      ]
    },
    {
      "page": "vcov.walsNB",
      "title": "Calculate Variance-Covariance Matrix for a '\"walsNB\"' object",
      "topics": [
        "vcov.walsNB"
      ]
    },
    {
      "page": "wals",
      "title": "Weighted-Average Least Squares for linear regression models",
      "topics": [
        "wals",
        "wals.default",
        "wals.formula",
        "wals.matrix"
      ]
    },
    {
      "page": "walsFit",
      "title": "Fitter function for Weighted Average Least Squares estimation",
      "topics": [
        "walsFit"
      ]
    },
    {
      "page": "walsGLM",
      "title": "Weighted Average Least Squares for Generalized Linear Models",
      "topics": [
        "walsGLM",
        "walsGLM.default",
        "walsGLM.formula",
        "walsGLM.matrix",
        "walsGLMmatrix"
      ]
    },
    {
      "page": "walsGLMfit",
      "title": "Fitter function for Weighted Average Least Squares estimation of GLMs",
      "topics": [
        "walsGLMfit"
      ]
    },
    {
      "page": "walsGLMfitIterate",
      "title": "Iteratively fitting walsGLM, internal function for walsGLM.formula and walsGLM.matrix.",
      "topics": [
        "walsGLMfitIterate"
      ]
    },
    {
      "page": "walsNB",
      "title": "Weighted-Average Least Squares for Negative Binomial Regression",
      "topics": [
        "walsNB",
        "walsNB.default",
        "walsNB.formula",
        "walsNB.matrix",
        "walsNBmatrix"
      ]
    },
    {
      "page": "walsNBfit",
      "title": "Fitter function for Weighted Average Least Squares estimation of NB2 regression model",
      "topics": [
        "walsNBfit"
      ]
    },
    {
      "page": "walsNBfitIterate",
      "title": "Iteratively fitting walsNB, internal function for walsNB.formula and walsNB.matrix.",
      "topics": [
        "walsNBfitIterate"
      ]
    }
  ],
  "_readme": "https://github.com/kevhuy/wals/raw/HEAD/README.md",
  "_rundeps": [
    "Formula",
    "MASS",
    "rbibutils",
    "Rdpack"
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "wals",
  "_universes": [
    "kevhuy"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-10-04T08:34:48.000Z",
      "distro": "resolute",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/bb9e12b263e8f51201a12c14bf64f1fe5ba87a1c28dc4b8ddbe1dac9b72c71ed",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.2.6",
      "date": "2026-10-04T08:34:48.000Z",
      "distro": "resolute",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/b89ad6c8ac374374a22d00ae67f68867ca2caa6e95aee46d99bdc54e0d0ab484",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-10-04T08:57:08.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/efe547f034e9df23d4c3fda05568a73e88fa4b31ca9597c4a307dd7e50bed1ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.2.6",
      "date": "2026-10-04T08:44:31.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/539e7a82e7c03376764d1a81883f92b42466498116b8d0d952587528b0213ef4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.6",
      "date": "2026-10-04T08:34:50.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/e559105214b882a43d6dcdfc59764af8d164d8b41fb269eb9496817c0370f45a",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-10-04T08:33:51.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/d47a9800250a26e62cd7404a4e33f9fa6ad9c471b20924f01b3ca2b77bcd1afe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-10-04T08:33:55.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/5d6986c8bb127f0a24b0dea68b865ac3943b7e2261e0c3738a4b602f176a035e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.2.6",
      "date": "2026-10-04T08:33:57.000Z",
      "commit": "7dbc8c4495062c8d5c872dda3da53118c73a5dd3",
      "fileid": "https://r2.ropensci.org/54e66cd95cf2fb12684bf46f416e5daee0d9ce567321e7c7b483b81830ad0757",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kevhuy/actions/runs/37189106069"
    }
  ]
}