InitPop: Initialize population segmentation.

Description Usage Arguments Value

Description

Initialize population segmentation.

Usage

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)))

Arguments

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.

Value

invisible(NULL). data.dt is updated by reference.


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