update_states: Update multiple state's movement

Description Usage Arguments Value Examples

Description

A vectorized function of update_state()

Usage

1
update_states(n, prob)

Arguments

n

An integer vector for the number of draws for each state.

prob

A probability of transitioning.

Value

Number of individuals leaving each state.

Examples

1
update_states(c(50,100,20,30), 0.3)

sjfox/rtZIKVrisk documentation built on May 30, 2019, 12:04 a.m.