set_pbox | R Documentation |
Constructs a probability box (pbox) by automatically selecting the best marginal distribution and copula for a given dataset. This function facilitates the creation of a pbox object, which encapsulates the uncertainty and dependencies of the input data.
'set_pbox' method that utilizes data frames or data tables to configure a comprehensive pbox structure. The method involves stages of distribution fitting and copula selection, executed through external functions presumed to be available in the working environment or described in the package.
set_pbox(data, verbose = TRUE, ...)
## S4 method for signature 'ANY'
set_pbox(data, verbose = TRUE, ...)
data |
A data frame or data table. The data will be coerced to a 'data.table' internally. |
verbose |
control verbosity of the output. Default to TRUE. |
... |
Other arguments to be passed to the 'fitDist' function. |
An object of class 'pbox' with the following slots: - '@data': The original data coerced into a 'data.table'. - '@copula': The selected copula object, typically of class 'mvdc'. - '@fit': A list containing results from the automated selection processes for both the marginal distributions and the copula.
data("SEAex")
pbx <- set_pbox(data = SEAex)
print(pbx)
print(class(pbx))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.