M0: M0 Least-Squares Cross-Validation

Description Usage Arguments Value Author(s) References

View source: R/M0.q

Description

Compute the M0 least-squares cross-validation score.

Usage

1
M0(grid, kern.fun, ...)

Arguments

grid

an object of class linbin.

kern.fun

the density function of the kernel. The first argument must be a matrix whose rows contain the points where the density function will be evaluated. See, for example, the dmvnorm function in the mvtnorm package.

...

additional arguments are passed to kern.fun.

Value

a single numeric value: the M0 least-squares cross-validation score.

Author(s)

Kjell Konis kjell.konis@me.com

References

Silverman, B. W. (1986) Density Estimation for Statistics and Data Analysis. London: Chapman and Hall.


bpkde documentation built on May 30, 2017, 1:52 a.m.

Search within the bpkde package
Search all R packages, documentation and source code