
Prepare annual normalized benefit and cost schedules for sensitivity analysis
prepare_sa_calendar.RdMerge annual normalized benefit activation profiles and normalized cost disbursement schedules for a given project.
Value
A data.frame with columns year, benefit, and columns for each
active cost parameter (investment_<action>, maintenance_<action>).
Details
The function merges the schedules generated by:
prepare_sa_calendar_benefit(): normalized benefit activation profile (values in[0, 1]) based on the project's sequence of states and avoided damages.prepare_sa_calendar_cost(): normalized annual expenditure profiles for investment (normalized by total investment sum) and maintenance (normalized by annual steady-state cost) per action.
The combined schedule allows sensitivity analysis routines to evaluate yearly discounted cash flows by modulating nominal values and multiplying them by their respective annual multipliers.
See also
Other sensitivity analysis:
format_flood(),
format_sector(),
perform_sa(),
plot_sa(),
plot_sa_triplet(),
plot_sobol(),
plot_uncertainty(),
prepare_sa(),
prepare_sa_cost(),
prepare_sa_flood(),
prepare_sa_impact(),
prepare_uncertainty(),
prop_negative()
Author
Frédéric Grelot, frederic.grelot.1994_cran@m4x.org
Examples
case = import_case(
system.file("extdata", "case", "complete.ods", package = "floodam.cba")
)
#> import Case from /tmp/RtmpvMoJJK/temp_libpath2b69f6f14b9e9/floodam.cba/extdata/case/complete.ods
#> ... done
project = setdiff(unique(case["project"][["project"]]), "baseline")[1]
prepare_sa_calendar(case, project)
#> year benefit investment_reinforcement maintenance_reinforcement
#> 1 0 0 0.0000000 0.0
#> 2 1 0 0.1666667 0.0
#> 3 2 0 0.4166667 0.0
#> 4 3 0 0.4166667 0.5
#> 5 4 1 0.0000000 1.0
#> 6 5 1 0.0000000 1.0
#> 7 6 1 0.0000000 1.0
#> 8 7 1 0.0000000 1.0
#> 9 8 1 0.0000000 1.0
#> 10 9 1 0.0000000 1.0
#> 11 10 1 0.0000000 1.0
#> 12 11 1 0.0000000 1.0
#> 13 12 1 0.0000000 1.0
#> 14 13 1 0.0000000 1.0
#> 15 14 1 0.0000000 1.0
#> 16 15 1 0.0000000 1.0
#> 17 16 1 0.0000000 1.0
#> 18 17 1 0.0000000 1.0
#> 19 18 1 0.0000000 1.0
#> 20 19 1 0.0000000 1.0
#> 21 20 1 0.0000000 1.0
#> 22 21 1 0.0000000 1.0
#> 23 22 1 0.0000000 1.0
#> 24 23 1 0.0000000 1.0
#> 25 24 1 0.0000000 1.0
#> 26 25 1 0.0000000 1.0
#> 27 26 1 0.0000000 1.0
#> 28 27 1 0.0000000 1.0
#> 29 28 1 0.0000000 1.0
#> 30 29 1 0.0000000 1.0
#> 31 30 1 0.0000000 1.0
#> 32 31 1 0.0000000 1.0
#> 33 32 1 0.0000000 1.0
#> 34 33 1 0.0000000 1.0
#> 35 34 1 0.0000000 1.0
#> 36 35 1 0.0000000 1.0
#> 37 36 1 0.0000000 1.0
#> 38 37 1 0.0000000 1.0
#> 39 38 1 0.0000000 1.0
#> 40 39 1 0.0000000 1.0
#> 41 40 1 0.0000000 1.0
#> 42 41 1 0.0000000 1.0
#> 43 42 1 0.0000000 1.0
#> 44 43 1 0.0000000 1.0
#> 45 44 1 0.0000000 1.0
#> 46 45 1 0.0000000 1.0
#> 47 46 1 0.0000000 1.0
#> 48 47 1 0.0000000 1.0
#> 49 48 1 0.0000000 1.0
#> 50 49 1 0.0000000 1.0
#> 51 50 1 0.0000000 1.0