plot_3segAttrition: Return a ggplot2 object displaying the 3 segment attrition...

Description Usage Arguments Value

Description

plot_3segAttrition uses f_basicAttrition. grey dashed lines shows the half-life.

Usage

1
2
3
4
plot_3segAttrition(SuppliesLevel4, attritionProfile, hwmodel2,
  segA_percent = c(0.1, 0.3), segA_begin = 24, segA_end = 48,
  segB_percent = c(0.7, 0.4), segB_begin = 36, segB_end = 120,
  segC_percent = c(0.2, 0.3), segC_begin = 60, segC_end = 240)

Arguments

SuppliesLevel4

a string

attritionProfile

astrin TBC

hwmodel2

a string TBC

segA_percent

a double, the share of the population in segment A.

segA_begin

an integer, month where decline starts for segment A.

segA_end

an integer, month where decline ends for segment A.

segB_percent

a double, the share of the population in segment B.

segB_begin

an integer, month where decline starts for segment B.

segB_end

an integer, month where decline ends for segment B.

segC_percent

a double, the share of the population in segment C.

segC_begin

an integer, month where decline starts for segment C.

segC_end

an integer, month where decline ends for segment C.

Value

a ggplot2 object.


FabienNicol/suppliesdash documentation built on May 6, 2019, 7:04 p.m.