View source: R/aggregate_simulation_results.R
calculate_average_outcome | R Documentation |
Given a set of simulation runs, estimate average impact over range of time points.
calculate_average_outcome(res, outcomename, timename, time_points = 1:54, ...)
res |
Dataframe of a single series (simulated or otherwise) |
outcomename |
Name of outcome in res |
time_points |
Which time points to average over, Default: 1:18 |
... |
Other parameters (ignored) |
Single number (in this case mean of given time points)
See aggregate_simulation_results
for how
this function would be used.
data( mecklenberg )
calculate_average_outcome( mecklenberg, "pbail", time_points=1:24 )
calculate_average_outcome( mecklenberg, "pbail", time_points = 1:18 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.