plot.Laplace {AsyK}R Documentation

Density Plot by Laplace kernel

Description

Plot density by using Laplace Kernel.

Usage

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

Arguments

x

an object of class "Laplace"

...

Not presently used in this implementation

Value

nothing

Author(s)

Javaria Ahmad Khan, Atif Akbar.

References

Khan, J. A.; Akbar, A. Density Estimation by Laplace Kernel. Working paper, Department of Statistics, Bahauddin Zakariya University, Multan, Pakistan.

See Also

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

Examples

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

[Package AsyK version 1.5.4 Index]