Learn R Programming

DELTD (version 2.6.8)

plot.Beta: Density Plot by Beta kernel

Description

Plot density by using Beta Kernel.

Usage

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

Value

nothing

Arguments

x

an object of class "Beta"

...

Not presently used in this implementation

Author

Javaria Ahmad Khan, Atif Akbar.

References

Chen, S. X. 2000. Beta kernel smothers for regression curves. Statistica Sinica 10, 73-91.

See Also

For further kernels see plot.Gamma, plot.Erlang, plot.BS and plot.LogN. To calculate its estimated values see Beta and for MSE see mse.

Examples

Run this code
y <- runif(100)
h <- 0.5
xx <- sample(0.00001:900, 50, replace = FALSE)/1000
den <- Beta(x = xx, y = y, k = 50, h = h)
plot(den, type = "p")
##other details can also be added
y <- runif(100)
h <- 0.7
xx <- sample(0.00001:900, 50, replace = FALSE)/1000
den <- Beta(x = xx, y = y, k = 50, h = h)
plot(den, type = "l", ylab = "Density Function", lty = 1, xlab = "Time")

Run the code above in your browser using DataLab