DELTD (version 2.6.5)

plot.LN: Density Plot by Lognormal kernel

Description

Plot Kernel density by using Lognormal Kernel.

Usage

# S3 method for LN
plot(x, ...)

Arguments

x

An object of class "LN"

Not presently used in this implementation

Value

Nothing

References

Jin, X.; Kawczak, J. 2003. Birnbaum-Saunders & Lognormal kernel estimators for modeling durations in high frequency financial data. Annals of Economics and Finance 4, 103<U+2013>124.

See Also

For further kernels see plot.Erlang, plot.Gamma and plot.BS. To calculate MSE by using Lognormal Kernel mseLN and for estimated values for density estimation see LN.

Examples

Run this code
# NOT RUN {
y <- rexp(23,1)
h <- 0.79 * IQR(y) * length(y) ^ (-1/5)
den <- LN(y,90,h)
plot(den, type = "s", ylab = "Density Function", lty = 1, xlab = "Time")
## To add true density along with estimated
d1 <- density(y,bw=h)
lines(d1,type="p",col="red")
# }

Run the code above in your browser using DataLab