Description Usage Arguments Value
Initialize population segmentation.
1 2 3 4 5 6 7 | InitPop(data.dt, pop.total, market.rate = 1,
prop.activity = rep(1/length(kActivityStates), length(kActivityStates)),
prop.favorability = rep(1/length(kFavorabilityStates),
length(kFavorabilityStates)), prop.loyalty = rep(1/length(kLoyaltyStates),
length(kLoyaltyStates)),
prop.availability = rep(1/length(kAvailabilityStates),
length(kAvailabilityStates)))
|
data.dt |
data.table containing all state-related data |
pop.total |
total population |
market.rate |
target proportion of consumers in 'in-market' market state. |
prop.activity |
vector of nonnegative values summing to 1, representing the proportion of the population to be assigned to each activity state, given they are "responsive," i.e., "in.market" and "unsatiated." |
prop.favorability |
vector of nonnegative values summing to 1, representing the proportion of the population to be assigned to each favorability state, given they are not "loyal." |
prop.loyalty |
vector of nonnegative values summing to 1, representing the proportion of the population to be assigned to each loyalty state. |
prop.availability |
vector of nonnegative values summing to 1, representing the proportion of the population to be assigned to each availability state. |
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.