x: A vector, a matrix or data-frame of data whose density should be estimated.
eval.points: A vector, a matrix or a data-frame of data points at which the density estimate should be evaluated.
kernel: Either 'gaussian' or 't7', it defines the kernel function to be used. See details below.
bwtype: Either 'fixed' or 'adaptive', corresponding to a kernel estimator with fixed or adaptive bandwidths respectively. See details below.
h: A vector of length set to NCOL(x), defining the smoothing parameters to be used either to estimate the density in kernel estimation with fixed bandwidth or to estimate the pilot density in kernel estimation with adaptive bandwidths. Default value is the result of h.norm applied to x.
hx: A matrix with the same number of rows and columns as x, where each row defines the vector of smoothing parameters specific for each sample point. To be used when bwtype = "adaptive". Default value is the result of hprop2f
applied to x. Set to NULL when bwtype= "fixed".
alpha: Sensitivity parameter to be given to hprop2f when bwtype= "adaptive" and the vectors of smoothing parameters are computed according to Silverman's (1986) approach.
Details
The current version of pdfCluster-package allows for computing estimates by a kernel product estimator of the form:
The kernel function K can either be a Gaussian density (if kernel = "gaussian") or a tν density, with ν=7 degrees of freedom (when kernel = "t7"). Although uncommon, the option of selecting a t kernel is motivated by computational efficiency reasons. Hence, its use is suggested when either x or eval.points have a huge number of rows.
The vectors of bandwidths hi=(hi,1⋯hi,d)′ are defined as follows:
Fixed bandwidth: When bwtype='fixed', hi=h that is, a constant smoothing vector is used for all the observations xi. Default values are set as asymptotically optimal for a multivariate Normal distribution (e.g., Bowman and Azzalini, 1997). See h.norm for further details.
Adaptive bandwidth: When bwtype='adaptive', a vector of bandwidths hi is specified for each observation xi. Default values are selected according to Silverman (1986, Section 5.3.1). See hprop2f.
Returns
An S4 object of kepdf-class with slots:
call: The matched call.
x: The data input, coerced to be a matrix.
eval.points: The data points at which the density is evaluated.
estimate: The values of the density estimate at the evaluation points.
kernel: The selected kernel.
bwtype: The type of estimator.
par: A list of parameters used to estimate the density, with elements:
h the smoothing parameters used to estimate either the density or the pilot density;
hx the matrix of sample smoothing parameters, when bwtype='adaptive';
alpha sensitivity parameter used if bwtype='adaptive'.
References
Bowman, A.W. and Azzalini, A. (1997). Applied smoothing techniques for data analysis: the kernel approach with S-Plus illustrations. Oxford University Press, Oxford.
Silverman, B. (1986). Density estimation for statistics and data analysis. Chapman and Hall, London.