Learn R Programming

simITS (version 0.1.1)

calculate_average_outcome: Summary function for summarize.simulation.results

Description

Given a set of simulation runs, estimate average impact over range of months.

Usage

calculate_average_outcome(res, outcomename, months = 1:54, ...)

Arguments

res

Dataframe of a single series (simulated or otherwise)

outcomename

Name of outcome in res

months

Which months to average over, Default: 1:18

...

Other parameters (ignored)

Value

Single number (in this case mean of given months)

See Also

See aggregate_simulation_results for how this function would be used.

Examples

Run this code
# 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