getMultinomialStatistics function

getMultinomialStatistics

getMultinomialStatistics

One updating step in simulating the mobility network model can be expressed as a multinomial logit model. Extracting the statistics for such a model allows a straight-forward estimation of a multinomial logit model to get initial estimates for the full mobility model, which increases the chances of model convergence in the first run of the estimation considerably.

getMultinomialStatistics(state, effects, cache = NULL)

Arguments

  • state: An object of class "processState.monan" that stores all information to be used in the model.
  • effects: An object of class "effectsList.monan" for which the statistics of a multinomial model should be calculated.
  • cache: Outdated parameter, no need to specify.

Returns

A data frame with N * M rows (N = mobile individuals, M = number of locations) that specifies for each observation the statistics associated with moving to this location.

Examples

myStatisticsFrame <- getMultinomialStatistics(myState, myEffects)

See Also

createProcessState(), createEffectsObject()

  • Maintainer: Per Block
  • License: GPL (>= 3)
  • Last published: 2024-09-12

Useful links