history_internal: Internal Functions: Making license history

Description Usage Arguments See Also

Description

These functions are only to be called from make_history. They work by side-effects; modifying the input data.table by reference.

Usage

1
2
3
4
5
6
7
forward_duration(dt, current_year)

forward_vars(dt, carry_vars)

make_lapse(dt_last, dt)

make_R3(dt, yrs)

Arguments

dt

data.table: current year table

current_year

numeric: year of current year table

carry_vars

character: additional variables to carry over from previous year (for multi-year and lifetime licenses).

dt_last

data.table: previous year table

yrs

numeric: Years in sales data (column 'year') from which to create license history

See Also

Other internal license history functions: prep_yrs


southwick-associates/salic documentation built on Nov. 5, 2019, 9:13 a.m.