Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
braverock
GitHub Repository: braverock/portfolioanalytics
Path: blob/master/sandbox/paper_analysis/readme.txt
1433 views
1
#################################################################################
2
# Code and data for replication of analysis of
3
# Boudt K, Carl P and Peterson B. 2009. Portfolio optimization with risk budgets.
4
# Disclaimer: This is free software and comes with ABSOLUTELY NO WARRANTY
5
# These programs are compatible with R version 2.13.0
6
#################################################################################
7
8
# Set your working directory to the folder "***\risk budget programs"
9
10
# This folder contains the subfolders R_allocation, R_interpretation, data, weights, etc
11
12
# Folder insample: is the insample analysis for the bondequity portfolio and for the efficient frontier
13
14
# Folder R_Allocation has the R code needed to do solve the portfolio allocation problem:
15
16
- main_riskbudgets.R: user interface through which the data, optimization criteria and constraints are identified and the allocation functions are called.
17
18
- risk_budget_functions.R: has the functions for the portfolio allocation
19
20
- estimators.R: has the portfolio risk estimators.
21
22
# Folder R_interpretation has the R code needed for the analysis of the optimized portfolios:
23
24
- stackedweightriskcontributionplot_oct.R: produces a 2x2 plot with the weights and risk allocation of the investment size and risk budget constrained portfolios.
25
uses functions in chart.StackedBar.R
26
- performanceanalysis_oct.R: studies the out-of-sample returns (uses functions in pfolioreturn.R to obtain returns that account for compounding)
27
28
29
# Folder data has the data
30
31
# Folder weights has the weights for the optimized portfolios
32
33
# Folder riskcont has the percentage risk contributions for the optimized portfolios
34