plot.RIG {AsyK}R Documentation

Density Plot by Resiprocal Inverse Gaussian kernel

Description

Plot density by using Resiprocal Inverse Gaussian Kernel.

Usage

## S3 method for class 'RIG'
plot(x, ...)

Arguments

x

an object of class "RIG"

...

Not presently used in this implementation

Value

nothing

Author(s)

Javaria Ahmad Khan, Atif Akbar.

References

Scaillet, O. 2004. Density estimation using inverse and reciprocal inverse Gaussian kernels. Nonparametric Statistics, 16, 217-226.

See Also

To examine RIG estimated values for density see RIG and for Mean Squared Error mseRIG. Similarly, for plot of Laplace kernel plot.Laplace.

Examples

y <- rexp(100, 1)
h <- 0.79 * IQR(y) * length(y) ^ (-1/5)
den<-RIG(y,200,h)
plot(den, type = "s", ylab = "Density Function", lty = 1, xlab = "Time")
d1 <- density(y, bw=h) #To add true density along with estimated
lines(d1,type="p",col="red")
legend("topright", c("Real Density", "Density by RIG Kernel"), col=c("red", "black"), lty=c(1,2))

[Package AsyK version 1.5.4 Index]