R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-pc-mingw32/i386 (32-bit)
Thanks for responding Josh. I got all the codes from my professor. Here is
what was required
##Load fPortfolio, PerformanceAnalytics, fOptions
Am I missing a Package? I'm not sure why is won't read the functions. Any
help is much appreciated.
> PData = Data[,3:10]
> Spec = portfolioSpec()
Error: could not find function "portfolioSpec"
> setTargetReturn(Spec) = mean(colMeans(PData))
Error in setTargetReturn(Spec) = mean(colMeans(PData))
chart.Regression(MCD,SPX, Rf = .03/12, excess.returns = TRUE, main =
"Security Characteristic Line", fit = c("loess", "linear"), legend.loc =
"topleft")
Error in as.vector(data[, i]) : subscript out of bounds
Why is this happening? Thanks
--
View this message in context:
http://r.789695.n4.nabb
I re-entered the command and then this appeared
Error in midnightStandard2(charvec, format) :
'charvec' has non-NA entries of different number of characters
--
View this message in context:
http://r.789695.n4.nabble.com/readSeries-tp3657300p3657396.html
Sent from the R help mailing list archi
Data = readSeries(file="Data.csv1.csv",header=T,sep=",",format="%Y-%m-%d")
after i enter this command it says it 'Error: could not find function
"readSeries"'
Please help thanks.
--
View this message in context:
http://r.789695.n4.nabble.com/readSeries-tp3657300p3657300.html
Sent from the R hel
5 matches
Mail list logo