{
  "_id": "6aef64af482d117aebab7bb8",
  "Package": "fgls",
  "Type": "Package",
  "Title": "Feasible GLS for Serial Correlation and Heteroskedasticity",
  "Version": "0.1.0",
  "Authors@R": "person(\"Emilio\", \"González-Coya\", , \"emiliogc@bu.edu\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0009-0001-0362-8843\"))",
  "Description": "Feasible generalized least squares (FGLS) estimators for\nlinear regressions whose errors are serially correlated,\nheteroskedastic of unknown form, or both. Serial correlation is\nhandled by the autoregressive filter of Perron and\nGonzález-Coya (2026) <doi:10.1016/j.jeconom.2026.106346>,\nestimated from a Durbin regression whose order is chosen by an\ninformation criterion, with a variance estimator that stays\nvalid when the regressors are only pre-determined rather than\nstrictly exogenous. Heteroskedasticity is handled by the\nadaptive Lasso estimate of the skedastic function of\nGonzález-Coya and Perron (2024) <doi:10.1515/jem-2023-0007>,\nwith a bias-corrected sandwich variance. Both corrections can\nbe combined. Benchmark estimators (ordinary least squares with\nheteroskedasticity and autocorrelation consistent standard\nerrors, Cochrane-Orcutt, infeasible GLS) and the simulation\ndesigns of both papers are included.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/emiliogcs/fgls, https://emiliogcs.com/fgls/",
  "BugReports": "https://github.com/emiliogcs/fgls/issues",
  "VignetteBuilder": "knitr, rmarkdown",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "RoxygenNote": "7.3.1",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-07 17:45:32 UTC",
    "User": "root"
  },
  "Author": "Emilio González-Coya [aut, cre, cph] (ORCID:\n<https://orcid.org/0009-0001-0362-8843>)",
  "Maintainer": "Emilio González-Coya <emiliogc@bu.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-07 16:56:33 UTC",
  "RemoteUrl": "https://github.com/cran/fgls",
  "RemoteRef": "HEAD",
  "RemoteSha": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
  "_user": "cran",
  "_type": "src",
  "_file": "fgls_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/ca1cb14f26f5fffd92bf0f007b0dcbf65c191bc47dd718ba340f648daa0163c7",
  "_filesize": 953626,
  "_sha256": "ca1cb14f26f5fffd92bf0f007b0dcbf65c191bc47dd718ba340f648daa0163c7",
  "_expires": "2027-02-15T17:49:34.000Z",
  "_created": "2026-11-07T17:45:32.000Z",
  "_published": "2026-11-07T17:49:35.842Z",
  "_upstream": "https://github.com/cran/fgls",
  "_status": "success",
  "_maintainer": {
    "name": "Emilio González-Coya",
    "email": "emiliogc@bu.edu",
    "orcid": "0009-0001-0362-8843"
  },
  "_jobs": [
    {
      "job": 128479165826,
      "time": 201,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13584018519"
    },
    {
      "job": 128479165868,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13584397315"
    },
    {
      "job": 128478304701,
      "time": 208,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13583399263"
    },
    {
      "job": 128479165797,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13584038294"
    },
    {
      "job": 128479165860,
      "time": 127,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13583823768"
    },
    {
      "job": 128479165887,
      "time": 166,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13583784029"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917",
  "_commit": {
    "id": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
    "author": "Emilio González-Coya <emiliogc@bu.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1794070593
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "glmnet",
      "version": ">= 4.1",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "broom",
      "role": "Suggests"
    },
    {
      "package": "e1071",
      "role": "Suggests"
    },
    {
      "package": "generics",
      "role": "Suggests"
    },
    {
      "package": "jsonlite",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "parallel",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "xts",
      "role": "Suggests"
    },
    {
      "package": "zoo",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-11-07"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fgls"
  },
  "_devurl": "https://github.com/emiliogcs/fgls",
  "_pkgdown": "https://emiliogcs.com/fgls/",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fgls.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-11-07"
    }
  ],
  "_exports": [
    "adf_test",
    "ar_roots",
    "cochrane_orcutt",
    "compare_fgls",
    "durbin_estimator",
    "fgls",
    "fgls_control",
    "hybrid_gls",
    "infeasible_gls",
    "lasso_fgls",
    "make_dictionary",
    "nonexogeneity_share",
    "ols_robust",
    "serial_fgls",
    "simulate_combined",
    "simulate_hetero",
    "simulate_predictive",
    "simulate_serial",
    "test_predetermined",
    "weight_diagnostics"
  ],
  "_help": [
    {
      "page": "adf_test",
      "title": "Augmented Dickey-Fuller test (screening)",
      "concept": [
        "diagnostics"
      ],
      "topics": [
        "adf_test",
        "print.fgls_adf"
      ]
    },
    {
      "page": "compare_fgls",
      "title": "Compare fits side by side",
      "concept": [
        "fgls"
      ],
      "topics": [
        "compare_fgls"
      ]
    },
    {
      "page": "fgls",
      "title": "Feasible GLS for serial correlation and/or heteroskedasticity",
      "concept": [
        "fgls"
      ],
      "topics": [
        "fgls"
      ]
    },
    {
      "page": "fgls_control",
      "title": "Advanced options for fgls",
      "concept": [
        "fgls"
      ],
      "topics": [
        "fgls_control"
      ]
    },
    {
      "page": "fgls-broom",
      "title": "Tidy, glance and augment fgls fits",
      "topics": [
        "augment.fgls",
        "fgls-broom",
        "glance.fgls",
        "tidy.fgls"
      ]
    },
    {
      "page": "fgls-conditions",
      "title": "Conditions signaled by fgls",
      "topics": [
        "fgls-conditions"
      ]
    },
    {
      "page": "fgls-methods",
      "title": "Methods for fgls fits",
      "concept": [
        "fgls"
      ],
      "topics": [
        "confint.fgls",
        "df.residual.fgls",
        "fgls-methods",
        "fitted.fgls",
        "formula.fgls",
        "model.frame.fgls",
        "model.matrix.fgls",
        "nobs.fgls",
        "predict.fgls",
        "print.fgls",
        "residuals.fgls",
        "terms.fgls",
        "vcov.fgls"
      ]
    },
    {
      "page": "lasso_fgls",
      "title": "Feasible GLS under heteroskedasticity of unknown form (González-Coya and Perron, 2024)",
      "concept": [
        "fgls",
        "heteroskedasticity"
      ],
      "topics": [
        "lasso_fgls"
      ]
    },
    {
      "page": "make_dictionary",
      "title": "Candidate covariates for the skedastic function",
      "concept": [
        "heteroskedasticity"
      ],
      "topics": [
        "make_dictionary"
      ]
    },
    {
      "page": "ols_robust",
      "title": "Benchmark estimators",
      "concept": [
        "benchmarks"
      ],
      "topics": [
        "cochrane_orcutt",
        "durbin_estimator",
        "hybrid_gls",
        "infeasible_gls",
        "ols_robust"
      ]
    },
    {
      "page": "plot.fgls",
      "title": "Diagnostic plots for fgls fits",
      "concept": [
        "fgls"
      ],
      "topics": [
        "plot.fgls"
      ]
    },
    {
      "page": "serial_fgls",
      "title": "Feasible GLS for serially correlated errors (Perron and González-Coya, 2026)",
      "concept": [
        "fgls"
      ],
      "topics": [
        "serial_fgls"
      ]
    },
    {
      "page": "simulate_serial",
      "title": "Simulate the designs of the papers",
      "concept": [
        "simulation"
      ],
      "topics": [
        "simulate_combined",
        "simulate_hetero",
        "simulate_predictive",
        "simulate_serial"
      ]
    },
    {
      "page": "summary.fgls",
      "title": "Summarize an fgls fit",
      "concept": [
        "fgls"
      ],
      "topics": [
        "print.summary.fgls",
        "summary.fgls"
      ]
    },
    {
      "page": "test_predetermined",
      "title": "Test whether lags of the regressors are missing (pre-determinedness)",
      "concept": [
        "diagnostics"
      ],
      "topics": [
        "print.fgls_predetermined",
        "test_predetermined"
      ]
    },
    {
      "page": "weight_diagnostics",
      "title": "Diagnostics of an fgls fit",
      "concept": [
        "diagnostics"
      ],
      "topics": [
        "ar_roots",
        "nonexogeneity_share",
        "weight_diagnostics"
      ]
    }
  ],
  "_readme": "https://github.com/cran/fgls/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "foreach",
    "glmnet",
    "iterators",
    "lattice",
    "Matrix",
    "Rcpp",
    "RcppEigen",
    "shape",
    "survival"
  ],
  "_vignettes": [
    {
      "source": "fgls.Rmd",
      "filename": "fgls.html",
      "title": "Getting started with fgls",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Three examples",
        "Serial correlation",
        "Heteroskedasticity of unknown form",
        "Both",
        "Working with fits",
        "Time series inputs",
        "Choosing options",
        "References"
      ],
      "created": "2026-11-07 16:56:33",
      "modified": "2026-11-07 16:56:33",
      "commits": 1
    },
    {
      "source": "heteroskedasticity.Rmd",
      "filename": "heteroskedasticity.html",
      "title": "Heteroskedasticity of unknown form (González-Coya and Perron, 2024)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The idea",
        "An example",
        "Candidate covariates",
        "No loss under homoskedasticity",
        "Alternatives and benchmarks",
        "Weights and robustness options",
        "Computation"
      ],
      "created": "2026-11-07 16:56:33",
      "modified": "2026-11-07 16:56:33",
      "commits": 1
    },
    {
      "source": "serial-correlation.Rmd",
      "filename": "serial-correlation.html",
      "title": "Serial correlation (Perron and González-Coya, 2026)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The problem",
        "The estimator",
        "Table 1 of the paper",
        "Variance and inference",
        "Lag selection",
        "Lagged dependent variables",
        "MA(1) errors",
        "Checking pre-determinedness"
      ],
      "created": "2026-11-07 16:56:33",
      "modified": "2026-11-07 16:56:33",
      "commits": 1
    },
    {
      "source": "combined.Rmd",
      "filename": "combined.html",
      "title": "Serial correlation and heteroskedasticity together",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The first-stage correction",
        "No loss under homoskedasticity",
        "Bootstrap cross-check"
      ],
      "created": "2026-11-07 16:56:33",
      "modified": "2026-11-07 16:56:33",
      "commits": 1
    },
    {
      "source": "validation.Rmd",
      "filename": "validation.html",
      "title": "Validation: replicating the papers and agreement with pyfgls",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Perron and González-Coya (2026), Table 1",
        "Perron and González-Coya (2026), Tables 2--5 (selected cells)",
        "González-Coya and Perron (2024), Table 1",
        "Supplement, Table S.9: F-C and F-CH",
        "Agreement with pyfgls"
      ],
      "created": "2026-11-07 16:56:33",
      "modified": "2026-11-07 16:56:33",
      "commits": 1
    }
  ],
  "_score": 3.3979400086720375,
  "_indexed": true,
  "_nocasepkg": "fgls",
  "_universes": [
    "cran",
    "emiliogcs"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-07T17:48:21.000Z",
      "distro": "resolute",
      "commit": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
      "fileid": "https://r2.ropensci.org/a2b98bdef636f66d3e9aa81c29d10577752abeb94e4d81647c60b77178c0a405",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-07T17:47:39.000Z",
      "distro": "resolute",
      "commit": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
      "fileid": "https://r2.ropensci.org/526273e8b8db05d44c12c63b2fe917e4d3385052aaf186abdfb7af5c95d3e263",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-07T17:47:47.000Z",
      "commit": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
      "fileid": "https://r2.ropensci.org/1150baf8a1bb0d8a4734cfd049830081d947f9b12c12d813bcd29d4f90f9025c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-07T17:46:39.000Z",
      "commit": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
      "fileid": "https://r2.ropensci.org/535b6dedeb9cb3166f55b646fbdf924d393519b62b88cf0b91d02b69525993c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-07T17:46:49.000Z",
      "commit": "a32f0812edf20c211b54cf525967a9f1b6f41dda",
      "fileid": "https://r2.ropensci.org/5b7e1846b45eb45baba24b5abf85b7ee48ac1d6eea2d0d0961d73e7a23a92f66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42397288917"
    }
  ]
}