Description Usage Arguments Details Value See Also
View source: R/from_cnqr-cnqr_est.R
Estimate copula parameters using CNQR. More specifically, for a given
object of type 'rvine'
that you would like to extend by adding
more rows to its last column, estimates the parameters for the
specified copula families of each edge.
1 2 |
rv |
Object of type |
a |
Vector of variable numbers (of the predictors) to augment to the
end of the array of |
cop |
Character vector of copulas to augment |
cpar_init |
Starting values for the copula families in |
sc |
Scoring rule to use for the regression, as in the output
of |
y |
Vector of response data. |
uind |
Matrix of independent uniform predictors,
as in the output of |
QY |
Quantile function of the response |
verbose |
verbose? |
Here's how the estimation is done.
You begin with a vine rv
, where the top-right corner
of the array is the response variable. There may or may not be
variables (representing the predictors) underneath this response. Note
that, to be able to condition the response on predictors, those
predictors must appear below the response variable in the vine array.
Your objective is to add more variables (predictors, already
existing in the vine) to the last column of the vine array. Package
these additional variables in the argument a
, with
corresponding copula families cop
.
The copula parameters of cop
need estimation. This is done
by optimizing quantile predictions of the response,
conditional on the predictors in a
AND the predictors
already listed below the response in the vine array of rv
.
The "optimization" in the previous step refers to optimizing a
scoring rule, which is indicated in the sc
argument.
Returns a list of copula parameters (the same structure
as cpar_init
), estimated with CNQR.
cnqr_sel
for CNQR when the model space is a
finite selection of vines.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.