Weights the stock and bond returns by the share of the portfolio held in stocks. From the Asset allocation chapter.
See also
Other asset allocation:
rebalance_amount()
Examples
# 100/0, 80/20, and 60/40 in an average year and a bad year
splits <- c(1, 0.8, 0.6)
portfolio_return(splits, stock_return = 0.10, bond_return = 0.04)
#> [1] 0.100 0.088 0.076
portfolio_return(splits, stock_return = -0.40, bond_return = 0)
#> [1] -0.40 -0.32 -0.24