[Returnanalytics-commits] r2143 - pkg/PerformanceAnalytics/sandbox/Meucci/demo
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Tue Jul 10 04:38:36 CEST 2012
Author: mkshah
Date: 2012-07-10 04:38:36 +0200 (Tue, 10 Jul 2012)
New Revision: 2143
Modified:
pkg/PerformanceAnalytics/sandbox/Meucci/demo/RankingInformation.R
Log:
Changing function name to avoid conflicts
Modified: pkg/PerformanceAnalytics/sandbox/Meucci/demo/RankingInformation.R
===================================================================
--- pkg/PerformanceAnalytics/sandbox/Meucci/demo/RankingInformation.R 2012-07-10 02:38:10 UTC (rev 2142)
+++ pkg/PerformanceAnalytics/sandbox/Meucci/demo/RankingInformation.R 2012-07-10 02:38:36 UTC (rev 2143)
@@ -22,7 +22,7 @@
Options$NumPortf = 20 # number of portfolios in efficient frontier
Options$FrontierSpan = c( .3 , .9 ) # range of normalized exp.vals. spanned by efficient frontier
-frontierPrior = EfficientFrontier( X , P , Options ) # Frontier Plot Data contains [e,s,w,M,S]
+frontierPrior = RIEfficientFrontier( X , P , Options ) # Frontier Plot Data contains [e,s,w,M,S]
# PlotResults( frontierPrior$e , frontierPrior$Sdev , frontierPrior$Composition , frontierPrior$Exps )
plot( x = (frontierPrior$Sdev)^2 , y = frontierPrior$e , xlab = "Variance" , ylab = "Expected Return" , main = "Prior" , type = "l" , ylim = c( .03 , .1 ) )
@@ -53,7 +53,7 @@
# compute and plot efficient frontier based on posterior market distribution
#############################################################################
-frontierFullConfidencePosterior = EfficientFrontier( X , P_ , Options )
+frontierFullConfidencePosterior = RIEfficientFrontier( X , P_ , Options )
# print expected returns of assets 3 and 4
frontierFullConfidencePosterior$Exps[3]
frontierFullConfidencePosterior$Exps[4] # note that asset 3 and asset 4 have equal expected returns
@@ -65,7 +65,7 @@
plotStackedBar
options( warn = 2 )
-frontierPosterior = EfficientFrontier( X , blendedProbability , Options )
+frontierPosterior = RIEfficientFrontier( X , blendedProbability , Options )
# print expected returns of assets 3 and 4
frontierPosterior$Exps[3]
frontierPosterior$Exps[4] # note that asset 4 still has a higher expected return, but less so
More information about the Returnanalytics-commits
mailing list