View source: R/histReturn_functions.R
randHistSub | R Documentation |
Subroutine (helper) to calculate random returns using historical data
randHistSub(sbiSub, stockWt, nConsecMonths = 12)
sbiSub |
tibble or data frame with historical data |
stockWt |
Weighting to stocks. Bonds will be 1 - StockWt |
nConsecMonths |
Number of consecutive months (default is 12). Must be 1, 2, 3, 4, 6, or 12. |
Two element vector with return and inflation rates + 1
## Not run: randHistSub(sbiSub, 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.