getDistOfValuesByYear | R Documentation |
For each year (1 to maximum length of a trail), it returns the number of trials of that length (nTrials) and the quantiles associated with the probs.
getDistOfValuesByYear(
sim,
probs = c(0, 0.05, 0.25, 0.5, 0.75, 0.95, 1),
simResult = "simulation",
inflationAdjusted = TRUE
)
sim |
Simulation object after running simulate function |
probs |
numeric vector of probabilities with values [0-1]. The default is c(0.0, 0.05, 0.25, 0.50, 0.75, 0.95, 1.0). |
simResult |
Name of item in sim with results (class = 'simResult') |
inflationAdjusted |
TRUE to adjust portfolio values by inflation, otherwise FALSE. |
data frame
## Not run: getDistOfValuesByYear(sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.