https://github.com/epiforecasts/qrensemble
Function and example for quantile regression average
https://github.com/epiforecasts/qrensemble
Last synced: 4 months ago
JSON representation
Function and example for quantile regression average
- Host: GitHub
- URL: https://github.com/epiforecasts/qrensemble
- Owner: epiforecasts
- License: mit
- Created: 2020-05-25T07:29:03.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2026-01-29T16:40:08.000Z (4 months ago)
- Last Synced: 2026-01-30T04:53:19.268Z (4 months ago)
- Language: R
- Size: 360 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
---
output: github_document
---
## Quantile regression average
NB: This is a transient package that will probably be merged into the
[stackr package](https://github.com/nikosbosse/stackr).
## Installation
The stable version of the package can be installed using
```{r eval=FALSE}
install.packages("qrensemble", repos = "https://epiforecasts.r-universe.dev/")
```
The development version can be installed using `pak`
```{r eval=FALSE}
pak::pak("epiforecasts/qrensemble")
```
### calculate QRA
Create an ensemble for each location, and separately for cases and deaths, for the 24th of July 2021
```{r}
library("qrensemble")
library("scoringutils")
example_quantile |>
as_forecast_quantile() |>
qra(
group = c("target_type", "location", "location_name"),
target = c(target_end_date = "2021-07-24")
)
```
## Contributors
All contributions to this project are gratefully acknowledged using the [`allcontributors` package](https://github.com/ropensci/allcontributors) following the [all-contributors](https://allcontributors.org) specification. Contributions of any kind are welcome!
### Code
### Issues