https://github.com/cran/kdevine
Raw File
Tip revision: 950ccc0c0c9d3f6c25ac1cfbddbf65faf191659d authored by Thomas Nagler on 17 December 2018, 15:00:03 UTC
version 0.4.2
Tip revision: 950ccc0
rkdevine.Rd
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/kdevine.R
\name{rkdevine}
\alias{rkdevine}
\title{Simulate from a kdevine object}
\usage{
rkdevine(n, obj, quasi = FALSE)
}
\arguments{
\item{n}{number of observations.}

\item{obj}{a \code{kdevine} object.}

\item{quasi}{logical; the default (\code{FALSE}) returns pseudo-random
numbers, use \code{TRUE} for quasi-random numbers (generalized Halton, only
works for fully nonparametric fits).}
}
\value{
An \eqn{n x d} matrix of simulated data from the \code{kdevine}
object.
}
\description{
Simulate from a kdevine object
}
\examples{
# load and plot data
data(wdbc)
\dontshow{wdbc <- wdbc[1:30, ]}
# estimate density
fit <- kdevine(wdbc[, 5:7], xmin = rep(0, 3))

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

}
\seealso{
\code{\link{kdevine}},
\code{\link{rkdevinecop}},
\code{\link{rkde1d}}
}
back to top