R/simulate-agents-multinomial-updater.R
multinomial_updater.Rd
Multinomial draws to update states depending on past count
multinomial_updater(state_counts, par_vals, D_list_fxns, time = NA)
state_counts | vector of length K of counts in each state |
---|---|
par_vals | parameter vector values |
D_list_fxns | output from |
time | current time, possibly used in the udpate function |
KxK matrix with new number in each state for agents who were in state i