grid_pbox | R Documentation |
This function queries the probabilistic space of a pbox object to calculate probabilities associated with specific marginal or conditional distributions on a quantile grid. It supports conditional probability calculations as well.
This method processes the pbox
object to compute probabilities based on the specified marginal
and conditional parameters. It handles both simple probability calculations and complex queries involving
joint and conditional distributions, with an option for bootstrap confidence interval estimation.
grid_pbox(pbx, mj = character(), co = NULL, probs = seq(0, 1, 0.1), ...)
## S4 method for signature 'pbox'
grid_pbox(pbx, mj = character(), co = NULL, probs = seq(0, 1, 0.1), ...)
pbx |
An object of class |
mj |
A character vector specifying the variables to query. |
co |
A character vector specifying the variables to query |
probs |
A numeric vector of quantiles to calculate probabilities for (default: seq(0, 1, 0.1)). |
... |
Additional parameters passed to |
A data.table containing estimated probabilities for each combination of quantiles and distributions queried.
A data.table containing estimated probabilities for each combination of quantiles and distributions queried.
data("SEAex")
pbx <- set_pbox(SEAex)
grid_pbox(pbx, mj = c("Vietnam", "Malaysia"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.