Description Usage Arguments Value
Updates in/out of market status by moving mimimal population in/out of the market necessary to match on requested proportion of "in.market" individuals.
1 2 | UpdateMarket(data.dt, target.rate,
prop.activity = rep(1/length(kActivityStates), length(kActivityStates)))
|
data.dt |
data.table containing all state-related data |
target.rate |
target proportion of consumers 'in-market' |
prop.activity |
single value between 0 and 1, representing proportion of population to be assigned to each activity state, given they are "responsive," i.e., "in.market" and "unsatiated." |
invisible(NULL)
. data.dt
is updated by reference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.