cparvec2cpar: Incorporate Parameter Lengths

Description Usage Arguments Value Examples

View source: R/cparvec2cpar.R

Description

Converts a vector of copula parameters, along with information about how many copula parameters belongs to each family, into a list of parameters for each family.

Usage

1
cparvec2cpar(cparvec, len)

Arguments

cparvec

Vector. Intended to be copula parameters.

len

Vector of non-negative integers indicating how many parameters belong to each family. Should have sum(len)=length(cparvec).

Value

List of copula parameters for each family corresponding to the entries in len.

Examples

1
cparvec2cpar(-3:3/2, len = c(1, 2, 1, 0, 2, 1, 0))

vincenzocoia/copsupp documentation built on Aug. 23, 2020, 7:37 a.m.