README.md

UnequalReturnHist

GSoC 2017 Unequal Returns History Project

For the GSoC 2017 Unequal Returns History project I proposed to do the following.

Basic Deliverables

Modification of Deliverables

Shortly after beginning the project it was decided by mutual agreement with my mentors Doug Martin and Yindeng Jiang that there was quite enough to do without including the FMMC method, and so that was dropped.

Goals Achieved

Successfully created the R package unequalReturnHist that includes the following key functions.

Work remaining to be Completed and Targeted for September-October

Installation

To get started, you can install the package from github using devtools.

# install.packages("devtools")
devtools::install_github("spushpak/UnequalReturnHist")

Example

This is a basic example which shows how to use different functions:

library(UnequalReturnHist)

## sample data
data("hfunds5_ue_ts")
head(hfunds5_ue_ts)

## Combined backfill
uneqhistCBF(hfunds5_ue_ts, FUN = "riskMeasures")
uneqhistCBF(hfunds5_ue_ts, FUN = "gmvPortfolio")

## Multiple Imputation
uneqhistMI(hfunds5_ue_ts, FUN = "riskMeasures")
uneqhistMI(hfunds5_ue_ts, FUN = "riskMeasures", M = 1000, saveReps = TRUE)
uneqhistMI(hfunds5_ue_ts, FUN = "gmvPortfolio", M = 1000, saveReps = TRUE)


## simulated data
data("sim_dat")
head(sim_dat)

## Combined backfill
uneqhistCBF(sim_dat, FUN = "riskMeasures")
uneqhistCBF(sim_dat, FUN = "gmvPortfolio")

## Multiple Imputation
uneqhistMI(sim_dat, FUN = "riskMeasures")
uneqhistMI(sim_dat, FUN = "riskMeasures", M = 1000, saveReps = TRUE)
uneqhistMI(sim_dat, FUN = "gmvPortfolio", M = 1000, saveReps = TRUE)


spushpak/UnequalReturnHist documentation built on May 24, 2019, 7:20 a.m.