a vector of annual investments,
(positive values represent investment into the account), length must be window_width
withdrawal_vector
a vector of annual withdrawals,
(positive values represent withdrawal from the account), length must be window_width
window_width
the number of years in each window
annual_fee
the total annual percent removed by the investment managers
output_path
file path to a folder in which graphs & statistics will be saved
Details
The daily market data for the S&P 500 from 1950 to the present
is broken into a series of periods or windows of equal length (except for
the last period). The investment and expense data provided is analyzed to
see how it would fare in each widow. Graphs and statistics are produced.
Value
data.frame with summary statistics for each window plus
the side-effects of graphs written to the output_path given