Learn R Programming

mig (version 2.0)

tnorm_lscv: Least squares cross-validation for truncated Gaussian kernel density estimation

Description

Least squares cross-validation for truncated Gaussian samples.

Usage

tnorm_lscv(x, Omega, beta, xsamp, dxsamp, mckern = TRUE)

Value

least square criterion value

Arguments

x

n by d matrix of observations

Omega

smoothing positive-definite matrix

beta

vector of constraints for the half-space

xsamp

n by d random sample for Monte Carlo estimation of bias

dxsamp

n vector of density for the points from xsamp

mckern

logical; if TRUE, uses the kernel as sampler for Monte Carlo estimation