{"id":15292967,"url":"https://github.com/athammad/pbox","last_synced_at":"2025-10-28T13:08:17.407Z","repository":{"id":236744310,"uuid":"781260098","full_name":"athammad/pbox","owner":"athammad","description":"pbox R package. Exploring multivariate spaces with Probability Boxes","archived":false,"fork":false,"pushed_at":"2024-07-09T10:39:18.000Z","size":1864,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T12:14:13.903Z","etag":null,"topics":["climate-change","copula","environmental-monitoring","financial-analysis","probability","r","risk-assessment","risk-management","statistics"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/athammad.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-04-03T03:34:57.000Z","updated_at":"2024-07-09T10:42:11.000Z","dependencies_parsed_at":"2024-05-06T07:51:58.526Z","dependency_job_id":"a0fbe97f-da12-49ac-bbb9-90b69e83cd75","html_url":"https://github.com/athammad/pbox","commit_stats":null,"previous_names":["athammad/pbox"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athammad%2Fpbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athammad%2Fpbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athammad%2Fpbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/athammad%2Fpbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/athammad","download_url":"https://codeload.github.com/athammad/pbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710448,"owners_count":21149191,"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":["climate-change","copula","environmental-monitoring","financial-analysis","probability","r","risk-assessment","risk-management","statistics"],"created_at":"2024-09-30T16:36:45.523Z","updated_at":"2025-10-28T13:08:12.367Z","avatar_url":"https://github.com/athammad.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PBOX \u003cimg src=\"./man/figures/pboxIcon.png\" align=\"right\" height=\"138\"/\u003e\n\n\u003c!-- badges:  --\u003e\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/pbox?color=blue)](https://cran.r-project.org/web/packages/pbox/)\n[![Downloads](https://cranlogs.r-pkg.org/badges/pbox?color=blue)](https://cran.rstudio.com/package=pbox)\n\n\u003c!-- badges: end --\u003e\n\n### Version 0.1.8 \n\n## Overview\n\nThe [pbox](https://github.com/athammad/pbox) R package is designed for risk assessment and management. It is an advanced statistical library that excels in exploring probability distributions within a given dataset. The tool offers a method to encapsulate and query the probability space effortlessly. Its distinctive feature lies in the ease with which users can navigate and analyze marginal, joint, and conditional probabilities while taking into account the underlying correlation structure inherent in the data. This unique capability empowers users to delve into intricate relationships and dependencies within a dataset, providing a solid foundation for making well-informed decisions in the context of risk management scenarios. With `pbox` is straightforward to answer questions like:\n\n-   What is the probability of experiencing extreme heat waves in Indonesia with temperatures above 32 degrees?\n\n-   What is the probability of simultaneous extreme heat waves in Vietnam with temperatures above than 31 degrees and the average regional temperature being above than 26 degrees?\n\n-   Given that the average regional temperature is 26 degrees, what is the probability of experiencing extreme heat waves in both Vietnam and Indonesia with temperatures above 33 degrees?\n\n## Features\n\n**Generate a `pbox` object from data**\n\n```{r, echo=TRUE, eval=FALSE}\ndata(\"SEAex\")\npbx\u003c-set_pbox(SEAex)\npbx\n```\n\n**Access the data and the copula object**\n\n```{r, echo=TRUE, eval=FALSE}\npbx@data\npbc@copula\n```\n\n**Access the results of the automated selection for both the marginal distribution and the copula**\n\n```{r, echo=TRUE, eval=FALSE}\npbx@fit\n```\n\n**Explore the probabilistic space**\n\n```{r, echo=TRUE, eval=FALSE}\n\n#Get marginal distribution\nqpbox(pbx,mj = \"Malaysia:33\")\n\n#Get Joint distribution\nqpbox(pbx,mj = \"Malaysia:33 \u0026 Vietnam:34\")\n\n# Conditional distribution distribution with Pr(X \u003c= x, Y \u003c= y) / Pr(Y = y)\nqpbox(pbx,mj = \"Malaysia:33 \u0026 median:c(Vietnam,Thailand)\", co=\"mean:c(avgRegion)\", fixed=TRUE)\n\n# Estimate confidence intervals\nqpbox(pbx,mj = \"Vietnam:31 \u0026 avgRegion:26\", co=\"Malaysia:32\",CI=T)\n\n\n```\n\n**Map the probabilistic space with a gird of quantile values**\n\n```{r, echo=TRUE, eval=FALSE}\n\ngrid_pbox(pbx, mj = c(\"Vietnam\", \"Malaysia\"))\n\n\n```\n\n**Query the probabilistic space under different scenarios with different combinations of parameters for a single query**\n\n```{r, echo=TRUE, eval=FALSE}\n\nscenario_pbox(pbx,mj = \"Vietnam:31 \u0026 avgRegion:26\", param_list = list(Vietnam=\"mu\"))\n\n```\n\n## Installation\nThe `pbox` package is currently under active development. The development version can be installed from GitHub,the stable version can be install directly from CRAN. Below are the installation instructions for both the development version and the CRAN version:\n\n### Development Version\nTo install the development version from GitHub, you first need to install the remotes package if you haven't already. Then, use `remotes::install_github` to install the `pbox` package from GitHub:\n\n```\ninstall.packages(\"remotes\")\nremotes::install_github(\"athammad/pbox\")\n\n```\n\n### CRAN Version\nInstall `pbox` directly from CRAN with the following command:\n\n```\ninstall.packages(\"pbox\")\n```\n\n## Getting Help or Reporting an Issue\n\nTo report bugs/issues/feature requests, please file an [issue](https://github.com/athammad/pbox/issues/).\n\n## Author\n`pbox` is written by [Ahmed T. Hammad](https://athsas.com/) and is under active development. Please feel free to contribute by submitting any issues or requests—or by solving any current issues!\n\n\n\u003c!---\n\n\n\n# Citation\n```\n@article{hammad2024obox,\n  author = {Ahmed T. Hammad},\n  title = {pbox: Exploring multivariate spaces with Probability Boxes},\n  journal = {Journal of Statistical Software},\n  year = {2024}\n}\n```\n\n--\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathammad%2Fpbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathammad%2Fpbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathammad%2Fpbox/lists"}