https://github.com/cran/kdevine
Revision 06a935fcd0daca8842f0d3138ff354753033c0ec authored by Thomas Nagler on 11 May 2021, 23:50:12 UTC, committed by cran-robot on 11 May 2021, 23:50:12 UTC
1 parent 950ccc0
Raw File
Tip revision: 06a935fcd0daca8842f0d3138ff354753033c0ec authored by Thomas Nagler on 11 May 2021, 23:50:12 UTC
version 0.4.3
Tip revision: 06a935f
kdevine.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kdevine.R
\name{kdevine}
\alias{kdevine}
\title{Kernel density estimatior based on simplified vine copulas}
\usage{
kdevine(x, mult_1d = NULL, xmin = NULL, xmax = NULL,
  copula.type = "kde", ...)
}
\arguments{
\item{x}{(\eqn{n x d}) data matrix.}

\item{mult_1d}{numeric; all bandwidhts for marginal kernel density estimation
are multiplied with \code{mult_1d}. Defaults to \code{log(1 + d)} where \code{d} is
the number of variables after applying \code{\link[cctools:expand_as_numeric]{cctools::expand_as_numeric()}}.}

\item{xmin}{numeric vector of length d; see \code{\link{kde1d}}.}

\item{xmax}{numeric vector of length d; see \code{\link{kde1d}}.}

\item{copula.type}{either \code{"kde"} (default) or \code{"parametric"} for
kernel or parametric estimation of the vine copula.}

\item{...}{further arguments passed to \code{\link{kde1d}} or
\code{\link{kdevinecop}}.}
}
\value{
An object of class \code{kdevine}.
}
\description{
Implements the vine-copula based estimator of Nagler and Czado (2016). The
marginal densities are estimated by \code{\link{kde1d}}, the vine copula
density by \code{\link{kdevinecop}}. Discrete variables are convoluted with
the uniform distribution (see, Nagler, 2017). If a variable should be treated
as discrete, declare it as \code{\link[=ordered]{ordered()}}. Factors are expanded into binary
dummy codes.
}
\examples{
# load data
data(wdbc, package = "kdecopula")
\dontshow{wdbc <- wdbc[1:30, ]}
# estimate density (use xmin to indicate positive support)
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))

# evaluate density estimate
dkdevine(c(1000, 0.1, 0.1), fit)

# plot simulated data
pairs(rkdevine(nrow(wdbc), fit))

}
\references{
Nagler, T., Czado, C. (2016) \emph{Evading the curse of
dimensionality in nonparametric density estimation with simplified vine
copulas.} Journal of Multivariate Analysis 151, 69-89
(doi:10.1016/j.jmva.2016.07.003) \cr \cr
Nagler, T. (2017). \emph{A generic approach to nonparametric function
estimation with mixed data.} \href{https://arxiv.org/abs/1704.07457}{arXiv:1704.07457}
}
\seealso{
\code{\link{dkdevine}} \code{\link{kde1d}} \code{\link{kdevinecop}}
}
back to top