All functions |
|
---|---|
Add model prediction to returnPrediction S3 object |
|
Add a new weight model to the portfolioReturns S3 object |
|
This function is for backtesting portfolios given return predictions |
|
This function is used to use ML to predict the returns that will later be used for a trading strategy |
|
Calculate errors between predictions and actual returns |
|
Helper function to convert any time period to days |
|
Create portfolioReturns S3 object |
|
Create returnPrediction S3 object |
|
Create weights based on various predictions, potentially using their errors with given constraints |
|
Helper function to find largest number after a certain string |
|
ols function for return prediction |
|
Helper function to create performance metrics for a given set of returns, weights, and actual data |
|
Plotting method for portfolioReturns S3 objects |
|
Create weights based on predictions with given constraints |
|
Return Prediction Mapping Function (Helper) |
|
Helper function to create a tibble of training/prediction start and end dates based on a rolling window with an offset |
|
Define the summary method for 'portfolioReturns' class |
|
Summary method for returnPrediction S3 object |
|
xgb function for return prediction |