clv.data.dynamic.covariates-class {CLVTools} | R Documentation |
Transactional and dynamic covariates data to fit CLV models
Description
Extends the class clv.data.static.covariates, but adds no additional slots to it. The purpose of this class rather is to define different behaviors suitable for dynamic covariates.
The data.table
s stored in the slots data.cov.life
and data.cov.trans
each contain an additional column Cov.Date
for the timepoint of the covariate.
An object of this class serves as input to fit models with dynamic covariates.
Usage
## S4 method for signature 'clv.data.dynamic.covariates'
show(object)
Slots
data.cov.life
Single
data.table
with all static covariate data for the lifetime processdata.cov.trans
Single
data.table
with all static covariate data for the transaction processnames.cov.data.life
Character vector with names of the dynamic lifetime covariates.
names.cov.data.trans
Character vector with names of the dynamic transaction covariates.
See Also
Definition of the parent class clv.data.static.covariates.
For fitting dynamic covariate models: pnbd