{"id":23509365,"url":"https://github.com/paulnorthrop/lax","last_synced_at":"2025-04-16T20:52:09.138Z","repository":{"id":56934758,"uuid":"200470886","full_name":"paulnorthrop/lax","owner":"paulnorthrop","description":"Loglikelihood Adjustment for Extreme Value Models","archived":false,"fork":false,"pushed_at":"2024-02-25T14:53:56.000Z","size":1283,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T18:55:48.792Z","etag":null,"topics":["clustered-data","clusters","composite-likelihood","evd","extreme-value-analysis","extreme-value-statistics","extremes","independence-loglikelihood","loglikelihood-adjustment","mle","pot","regression","regression-modelling","robust","sandwich","sandwich-estimator"],"latest_commit_sha":null,"homepage":"https://paulnorthrop.github.io/lax/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulnorthrop.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-04T08:56:22.000Z","updated_at":"2022-08-05T17:11:01.000Z","dependencies_parsed_at":"2024-02-25T11:31:10.244Z","dependency_job_id":"94012be4-41fb-406d-9376-4bb457620a4d","html_url":"https://github.com/paulnorthrop/lax","commit_stats":{"total_commits":655,"total_committers":1,"mean_commits":655.0,"dds":0.0,"last_synced_commit":"0ed6f1c3fcdd239bdf529f9e033f7e05c37a6fb4"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulnorthrop%2Flax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulnorthrop%2Flax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulnorthrop%2Flax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulnorthrop%2Flax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulnorthrop","download_url":"https://codeload.github.com/paulnorthrop/lax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249275740,"owners_count":21242284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clustered-data","clusters","composite-likelihood","evd","extreme-value-analysis","extreme-value-statistics","extremes","independence-loglikelihood","loglikelihood-adjustment","mle","pot","regression","regression-modelling","robust","sandwich","sandwich-estimator"],"created_at":"2024-12-25T11:40:31.766Z","updated_at":"2025-04-16T20:52:09.120Z","avatar_url":"https://github.com/paulnorthrop.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"README-\"\n)\n```\n\n# lax\n\n[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/paulnorthrop/lax?branch=master\u0026svg=true)](https://ci.appveyor.com/project/paulnorthrop/lax)\n[![R-CMD-check](https://github.com/paulnorthrop/lax/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/paulnorthrop/lax/actions/workflows/R-CMD-check.yaml)\n[![Coverage Status](https://codecov.io/github/paulnorthrop/lax/coverage.svg?branch=master)](https://app.codecov.io/github/paulnorthrop/lax?branch=master)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/lax)](https://cran.r-project.org/package=lax)\n[![Downloads (monthly)](https://cranlogs.r-pkg.org/badges/lax?color=brightgreen)](https://cran.r-project.org/package=lax)\n[![Downloads (total)](https://cranlogs.r-pkg.org/badges/grand-total/lax?color=brightgreen)](https://cran.r-project.org/package=lax)\n\n## Loglikelihood Adjustment for Extreme Value Models\n\n### What does lax do?\n\nThe [CRAN Task View on Extreme Value Analysis](https://CRAN.R-project.org/view=ExtremeValue) provides information about R packages that perform various extreme value analyses. The *lax* package supplements the univariate extreme value modelling, including regression modelling, provided by 9 of these packages, namely \n[eva](https://cran.r-project.org/package=eva),\n[evd](https://cran.r-project.org/package=evd),\n[evir](https://cran.r-project.org/package=evir),\n[extRemes](https://cran.r-project.org/package=extRemes),\n[fExtremes](https://cran.r-project.org/package=fExtremes),\n[ismev](https://cran.r-project.org/package=ismev),\n[mev](https://cran.r-project.org/package=mev),\n[POT](https://cran.r-project.org/package=POT) and\n[texmex](https://cran.r-project.org/package=texmex).  *lax* works in an object-oriented way, operating on R objects returned from functions in other packages that summarise the fit of an extreme value model.  It uses the [chandwich](https://cran.r-project.org/package=chandwich) package to provide robust sandwich estimation of parameter covariance matrix and loglikelihood adjustment for models fitted by maximum likelihood estimation.   This is performed by an `alogLik` S3 method, illustrated by the following example.\n    \n### An example\n\nThis example is based on the analysis presented in Section 5.2 of \n[Chandler and Bate (2007)](https://doi.org/10.1093/biomet/asm015).  The data, which are available in the data frame `ow`, are a bivariate time series of annual maximum temperatures, recorded in degrees Fahrenheit, at Oxford and Worthing in England, for the period 1901 to 1980.  If interest is only in the marginal distributions of high temperatures in Oxford and Worthing, then we might fit a GEV regression model in which some or all of the parameters may vary between Oxford and Worthing.  However, we should adjust for the cluster dependence between temperatures recorded during the same year.\n\nThe following code fits such a model using the `fevd` function in the [extRemes](https://cran.r-project.org/package=extRemes) package and the uses `alogLik` to perform adjusted inferences.\n\n```{r, warning = FALSE}\nlibrary(lax)\nlibrary(extRemes, quietly = TRUE)\n# Fit a GEV model with separate location, scale and shape for Oxford and Worthing\n# Note: phi = log(scale)\nevm_fit \u003c- fevd(temp, ow, location.fun = ~ loc, scale.fun = ~ loc, \n                shape.fun = ~ loc)\n# Adjust the loglikelihood and standard errors\nadj_evm_fit \u003c- alogLik(evm_fit, cluster = ow$year, cadjust = FALSE)\n# MLEs, SEs and adjusted SEs\nsummary(adj_evm_fit)\n```\n\nAn object returned from `aloglik` is a function to evaluate the adjusted loglikelihood, with `anova`, `coef`, `confint`, `logLik`, `nobs`, `plot`, `print`, `summary` and `vcov` methods.\n\n### Installation\n\nTo get the current released version from CRAN:\n\n```{r installation, eval = FALSE}\ninstall.packages(\"lax\")\n```\n\n### Vignette\n\nSee `vignette(\"lax-vignette\", package = \"lax\")` for an overview of the package.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulnorthrop%2Flax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulnorthrop%2Flax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulnorthrop%2Flax/lists"}