Learn R Programming

psre (version 0.1.2)

normBand: Kernel Density with Normal Density Overlay

Description

Calculates a kernel density estimate of the data along with confidence bounds. It also computes a normal density and confidence bounds for the normal density with the same mean and variance as the observed data.

Usage

normBand(x, ...)

Value

A named vector of scalar measures of fit

Arguments

x

A vector of values whose density is to be calculated

...

Other arguments to be passed down to sm.density.

Author

Dave Armstrong, A.W. Bowman and A. Azzalini

Details

The function is largely cribbed from the sm package by Bowman and Azzalini

References

A.W> Bowman and A. Azzalini, R package sm: nonparametric smoothing methods (verstion 5.6).