powered by
Given a set of simulation runs, estimate average impact over range of months.
calculate_average_outcome(res, outcomename, months = 1:54, ...)
Dataframe of a single series (simulated or otherwise)
Name of outcome in res
Which months to average over, Default: 1:18
Other parameters (ignored)
Single number (in this case mean of given months)
See aggregate_simulation_results for how this function would be used.
aggregate_simulation_results
# NOT RUN { data( mecklenberg ) calculate_average_outcome( mecklenberg, "pbail", months=1:24 ) calculate_average_outcome( mecklenberg, "pbail", months = 1:18 ) # }
Run the code above in your browser using DataLab