pbox

pbox R package. Exploring multivariate spaces with Probability Boxes

https://github.com/athammad/pbox

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.5%) to scientific vocabulary

Keywords

climate-change copula environmental-monitoring financial-analysis probability r risk-assessment risk-management statistics
Last synced: 6 months ago · JSON representation

Repository

pbox R package. Exploring multivariate spaces with Probability Boxes

Basic Info
  • Host: GitHub
  • Owner: athammad
  • License: gpl-3.0
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 1.78 MB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
climate-change copula environmental-monitoring financial-analysis probability r risk-assessment risk-management statistics
Created almost 2 years ago · Last pushed over 1 year ago
Metadata Files
Readme Changelog License

README.md

PBOX

CRAN_Status_Badge Downloads

Version 0.1.8

Overview

The 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:

  • What is the probability of experiencing extreme heat waves in Indonesia with temperatures above 32 degrees?

  • 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?

  • 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?

Features

Generate a pbox object from data

{r, echo=TRUE, eval=FALSE} data("SEAex") pbx<-set_pbox(SEAex) pbx

Access the data and the copula object

{r, echo=TRUE, eval=FALSE} pbx@data pbc@copula

Access the results of the automated selection for both the marginal distribution and the copula

{r, echo=TRUE, eval=FALSE} pbx@fit

Explore the probabilistic space

```{r, echo=TRUE, eval=FALSE}

Get marginal distribution

qpbox(pbx,mj = "Malaysia:33")

Get Joint distribution

qpbox(pbx,mj = "Malaysia:33 & Vietnam:34")

Conditional distribution distribution with Pr(X <= x, Y <= y) / Pr(Y = y)

qpbox(pbx,mj = "Malaysia:33 & median:c(Vietnam,Thailand)", co="mean:c(avgRegion)", fixed=TRUE)

Estimate confidence intervals

qpbox(pbx,mj = "Vietnam:31 & avgRegion:26", co="Malaysia:32",CI=T)

```

Map the probabilistic space with a gird of quantile values

```{r, echo=TRUE, eval=FALSE}

grid_pbox(pbx, mj = c("Vietnam", "Malaysia"))

```

Query the probabilistic space under different scenarios with different combinations of parameters for a single query

```{r, echo=TRUE, eval=FALSE}

scenariopbox(pbx,mj = "Vietnam:31 & avgRegion:26", paramlist = list(Vietnam="mu"))

```

Installation

The 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:

Development Version

To 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:

``` install.packages("remotes") remotes::install_github("athammad/pbox")

```

CRAN Version

Install pbox directly from CRAN with the following command:

install.packages("pbox")

Getting Help or Reporting an Issue

To report bugs/issues/feature requests, please file an issue.

Author

pbox is written by Ahmed T. Hammad and is under active development. Please feel free to contribute by submitting any issues or requests—or by solving any current issues!

Owner

  • Name: Ahmed T. Hammad
  • Login: athammad
  • Kind: user
  • Company: Decatab

Data Scientist | Program Evaluator | Academic Researcher

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 272 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: pbox

Exploring Multivariate Spaces with Probability Boxes

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 272 Last month
Rankings
Dependent packages count: 28.8%
Dependent repos count: 35.5%
Average: 49.8%
Downloads: 85.2%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • gamlss.dist * depends
  • copula * imports
  • data.table * imports
  • gamlss * imports
  • methods * imports
  • purrr * imports
  • stringr * imports
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests