Learn R Programming

cnmlcd (version 1.2-0)

new.lcd: Create an Object of Class "lcd"

Description

Creates a new object of class "lcd".

Usage

new.lcd(alpha, theta = NULL, pi = NULL, lower, upper)

Arguments

alpha

the slope of the log-density before the first interior knot.

theta

vector of interior knots.

pi

vector of changes of slope.

lower

lower-boundary knot (L). This should be the smallest observed value.

upper

upper-boundary knot (U). This should be the largest observed value.

Value

An object of class lcd.

References

Liu, Y. and Wang, Y. (2018). A Fast Algorithm for Univariate Log-concave Density Estimation. Australia & New Zealand Journal of Statistics (To appear).

See Also

lcd, cnmlcd.

Examples

Run this code
# NOT RUN {
## Create an object of a class "lcd"
new.lcd(alpha = 1, theta = c(2,3), pi = c(1,2), lower = 0, upper = 4)
# }

Run the code above in your browser using DataLab