# Dvine: Flexible Pair-Copula Estimation in D-vines with Penalized... In penDvine: Flexible Pair-Copula Estimation in D-Vines using Bivariate Penalized Splines

## Description

Calculating D-vines with penalized B-splines or penalized Bernstein polynomials

## Usage

 `1` ```Dvine(data,K=8,lambda=100,order.Dvine=TRUE,pen=1,base="Bernstein",m=2,cores=NULL,q=2) ```

## Arguments

 `data` 'data' contains the data. 'data' has to be a matrix or a data.frame with two columns. `K` K is the degree of the Bernstein polynomials. In the case of linear B-spline basis functions, K+1 nodes are used for the basis functions. `lambda` Starting value for lambda, default is lambda=100. `order.Dvine` Indicating if the first level of the Dvine is ordered, default (order.Dvine=TRUE). `pen` 'pen' indicates the used penalty. 'pen=1' for the difference penalty of m-th order. 'pen=2' is only implemented for Bernstein polynomials, it is the penalty based on the integrated squared second order derivatives of the Bernstein polynomials. `base` Type of basis function, default is "Bernstein". An alternative is base="B-spline". `m` Indicating the order of differences to be penalised. Default is "m=2". `cores` Default=NULL, the number of cpu cores used for parallel computing can be specified. `q` Order of B-splines. Default is q=2, NULL if Bernstein polynomials are used.

## Details

The calculation of the Dvine is done stepwise. If the option 'order.Dvine' is selected, the order of the first level of the Dvine is specifed. From the second level, each paircopula is calculated (parallel or not) until the highest level. The specifications in 'Dvine' are done for every paircopula in the Dvine. There is no option to change parameters for some paircopulas.

## Value

Returning a list containing

 `Dvine` an object of class 'Dvine' `log.like` the estimated log-likelihood `AIC` AIC value `cAIC` corrected AIC value `K` Number of K `order` the used order of the first level `S` Sequence seq(1:(dim(data))) `N` Number of observations, that is dim(data) `base` Used basis function

## Author(s)

Christian Schellhase <cschellhase@wiwi.uni-bielefeld.de>

## References

Flexible Pair-Copula Estimation in D-vines using Bivariate Penalized Splines, Kauermann G. and Schellhase C. (2014+), Statistics and Computing (to appear).

penDvine documentation built on May 2, 2019, 1:06 p.m.