svine | R Documentation |
Automated fitting or creation of custom S-vine distribution models
svine(
data,
p,
margin_families = univariateML::univariateML_models,
selcrit = "aic",
...
)
data |
a matrix or data.frame of data. |
p |
the Markov order. |
margin_families |
either a vector of univariateML::univariateML_models to select
from (used for every margin) or a list with one entry for every variable.
Can also be |
selcrit |
criterion for family selection, either |
... |
arguments passed to |
Returns the fitted model as an object with classes
svine
and svine_dist. A list with entries
$margins
: list of marginal models from univariateML::univariateML_models,
$copula
: an object of svinecop_dist
.
svine_dist, svine_loglik, svine_sim, svine_bootstrap_models
# load data set
data(returns)
# fit parametric S-vine model with Markov order 1
fit <- svine(returns[1:100, 1:3], p = 1, family_set = "parametric")
fit
summary(fit)
plot(fit$copula)
contour(fit$copula)
logLik(fit)
pairs(svine_sim(500, rep = 1, fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.