Path: blob/master/sandbox/RFinance2014/data_prep.R
1433 views
1##### Equity Data for Example 1 and Example 2 #####2load("data/crsp_weekly.rda")34equity.data <- cbind(largecap_weekly[,1:15],5midcap_weekly[,1:15],6smallcap_weekly[,1:5])7market <- largecap_weekly[,21]8Rf <- largecap_weekly[,22]910##### edhec Data for Example 3 and Example 4 #####11# Load the updated edhec dataset12load("data/edhec.rda")1314# Prep data for Examples 3 and 415R <- edhec[,c("Convertible.Arbitrage", "Equity.Market.Neutral",16"Fixed.Income.Arbitrage",17"CTA.Global", "Emerging.Markets", "Global.Macro")]18# Abreviate column names for convenience and plotting19colnames(R) <- c("CA", "EMN", "FIA", "CTAG", "EM", "GM")202122# clean up and remove the data we don't need23rm(largecap_weekly, midcap_weekly, smallcap_weekly, microcap_weekly)24rm(edhec)252627