View source: R/standard_errors.R
svine_scores | R Documentation |
Score function of parametric S-vine models
svine_scores(x, model, cores = 1)
x |
the data. |
model |
S-vine model (inheriting from svine_dist). |
cores |
number of cores to use. |
A returns a n
-by-k
matrix, where n = NROW(x)
and k
is the
total number of parameters in the
model. Parameters are ordered as follows:
marginal parameters, copula parameters of first tree, copula parameters of
second tree, etc. Duplicated parameters in the copula model are omitted.
data(returns)
dat <- returns[1:100, 1:2]
# fit parametric S-vine model with Markov order 1
model <- svine(dat, p = 1, family_set = "parametric")
# Implementation of asymptotic variances
I <- cov(svine_scores(dat, model))
H <- svine_hessian(dat, model)
Hi <- solve(H)
Hi %*% I %*% t(Hi) / nrow(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.