Plotting retirement ruin
Usage
plot_retirement_ruin(
portfolio_return_mean,
portfolio_return_sd,
age,
gompertz_mode,
gompertz_dispersion,
portfolio_value,
monthly_spendings = NULL
)
Arguments
- portfolio_return_mean
A numeric. Mean of portfolio returns.
- portfolio_return_sd
A numeric. Standard deviation of portfolio returns.
- age
A numeric. Current age.
- gompertz_mode
A numeric. Gompertz mode.
- gompertz_dispersion
A numeric. Gompertz dispersion.
- portfolio_value
A numeric. Initial portfolio value.
- monthly_spendings
A numeric. Monthly spendings.
Value
A ggplot2::ggplot()
object showing the probability of
retirement ruin for different monthly spending levels.
If a specific 'monthly_spendings' value is provided,
it will be highlighted on the plot with annotations.