You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The actual and expected repeat transactions are shifted by a period because they currently are (wrongfully) defined differently: Repeat transactions are currently implemented as "forward-looking", ie the number of transactions in the period that starts at the plotting point whereas expected transactions are implemented as "backward-looking", ie expected transactions in the period that end at the plotting point.
The BTYD package implements this backward-looking which can be seen from the plot which at the estimation start has a hard-coded zero for the expectation (see BTYD::dc.CumulativeToIncremental). For consistency with the plots from BTYD, the plot in CLVTools is also implemented as backward-looking.
This requires to implement:
actual repeat transactions of last period until plotting point
model expectation of last period until plotting point
tests that very first expectation and repeat trans are always 0 (clv.fitted and clv.data)
clarify documentation of period definitions and returned data for plot of clv.fitted and clv.data
rename column of returned data from period.first to period.until
The text was updated successfully, but these errors were encountered:
Kink
Because of the dyncov model, the plotting points are currently set to be on the covariate dates. This often causes the second plotting point to be spaced less than 1 period from the first plotting point (estimation start) what again implies that the expectation at the second plotting point is calculated only as a partial period. This partial period leads to a "kink" in the plot at the beginning.
Shifted Periods
For some cases, the exepectation values are still shifted by what seems exactly 1 period from the actual transactions.
- Roll repeat transactions forward
- tests for actual and expected trans = 0
- replace period.first with period.until
- clarify documentation on plotting points (period.until)
Contributes to #78
The actual and expected repeat transactions are shifted by a period because they currently are (wrongfully) defined differently: Repeat transactions are currently implemented as "forward-looking", ie the number of transactions in the period that starts at the plotting point whereas expected transactions are implemented as "backward-looking", ie expected transactions in the period that end at the plotting point.
The BTYD package implements this backward-looking which can be seen from the plot which at the estimation start has a hard-coded zero for the expectation (see
BTYD::dc.CumulativeToIncremental
). For consistency with the plots from BTYD, the plot in CLVTools is also implemented as backward-looking.This requires to implement:
The text was updated successfully, but these errors were encountered: