SimulateData: Simulate data using the AMSS framework.

Description Usage Arguments Value

Description

Data generating function for AMSS. Responsible for sequentially simulating the value of each variable at each time point by population segment, given the simulation settings.

Usage

1
2
SimulateData(starting.dts = list(), time.n, nat.mig.module, nat.mig.params,
  media.names, media.modules, media.params, sales.module, sales.params, ping)

Arguments

starting.dts

previously generated data that we can start with. data will only be generated for later timepoints

time.n

total number of timepoints, including the timepoints already existing in starting.dts.

nat.mig.module

function used to simulate effects of natural migration on population segmentation.

nat.mig.params

list of any parameter values to pass to nat.mig.module

media.names

character vector of unique names of all media modules. ex: c("tv", "search")

media.modules

list of functions that simulate the behavior of each marketing intervention.

media.params

list of parameter value lists for each media module.

sales.module

function that generate sales variables.

sales.params

list of any parameter values to pass to the sales module

ping

the spacing between time points at which to print a message updating the user on simulation progress.

Value

a list of data sets, one per timepoint. Each is a data.table with rows corresponding to population segments and columns corresponding to specific variables.


google/amss documentation built on May 20, 2019, 5:05 p.m.