Displaying 1 result from an estimated 1 matches for "26p_500_spot_and_return_2010".
2011 Aug 25
2
Adding a normal density curve over the empirical curve
...r the empirical returns.. What I now
want to do is to overlay a curve/line with the normal density as a
comparison of the two. Does anyone know how to do this?
(NB the last two lines are the problem, and are wrong, I know).
Thank you in advance!
Rikke
http://r.789695.n4.nabble.com/file/n3768783/S%26P_500_spot_and_return_2010.csv
S%26P_500_spot_and_return_2010.csv
setwd("F:/Data til speciale/")
marketdata <- read.csv(file="S&P 500 spot and return 2010.csv", header=TRUE,
sep=";")
returns <- marketdata[,7]
### Kernel density estimator ###########################
x <- densi...