svinecop_dist {svines} | R Documentation |
Custom S-vine models
Description
Custom S-vine models
Usage
svinecop_dist(
pair_copulas,
cs_structure,
p,
out_vertices,
in_vertices,
var_types = rep("c", dim(cs_structure)[1])
)
Arguments
pair_copulas |
A nested list of 'bicop_dist' objects, where
|
cs_structure |
The cross-sectional structure. Either a matrix, or an
|
p |
the Markov order. |
out_vertices |
the out-vertex; if |
in_vertices |
the in-vertex; if |
var_types |
variable types; discrete variables not (yet) allowed. |
Value
Returns the model as an object with classes
svinecop_dist
. Also inherits from vinecop_dist
such that many functions from rvinecopulib can be called.
See Also
svinecop_loglik, svinecop_sim, svinecop_hessian, svinecop_scores
Examples
cs_struct <- cvine_structure(1:2)
pcs <- list(
list( # first tree
bicop_dist("clayton", 0, 3), # cross sectional copula
bicop_dist("gaussian", 0, -0.1) # serial copula
),
list( # second tree
bicop_dist("gaussian", 0, 0.2), bicop_dist("indep")
),
list( # third tree
bicop_dist("indep")
)
)
cop <- svinecop_dist(
pcs, cs_struct, p = 1, out_vertices = 1:2, in_vertices = 1:2)