Description Usage Arguments Value
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.
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)
|
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
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.