Learn R Programming

cnmlcd (version 1.2-0)

logreturn2014: Daily Log-returns of S&P 500 in 2014.

Description

252 daily log-returns of S&P 500 from 02/01/2014 to 31/12/2014.

Usage

logreturn2014

Arguments

Format

A vector of 252 values.

See Also

cnmlcd, lcd.

Examples

Run this code
# NOT RUN {
data(logreturn2014)
## Computes and plots the log-concave density estimate
(r = cnmlcd(logreturn2014))
plot(r$lcd, logreturn2014)               # Density
plot(r$lcd, logreturn2014, log=TRUE)     # Log-density
plotgradient(r$lcd, logreturn2014)       # Gradient
# }

Run the code above in your browser using DataLab