Description Usage Arguments Value
View source: R/01_household_model_inputs_functions.R
compute_inflows
computes inflows.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | compute_inflows(
n_hhsize,
n_hh_mod,
v_names_hh,
v_names_states,
v_names_source,
v_names_destiny,
v_names_source_destiny,
v_index_hh_source,
v_index_hh_destiny,
v_index_keep_source,
v_index_souce_destiny_hh,
m_possibilities,
r_flow,
n_source_states,
m_hh_out
)
|
n_hhsize |
Household size. |
n_hh_mod |
Number of household model states. |
v_names_hh |
Vector with all names of household MC SEIR model. |
v_names_states |
Vector with names of household MC SEIR model. |
v_names_source |
Vector with names of source states. |
v_names_destiny |
Vector with names of destiny states. |
v_names_source_destiny |
Vector with names of source and destiny states. |
v_index_hh_source |
Vector with indexes of source states. |
v_index_hh_destiny |
Vector with indexes of destiny states. |
v_index_keep_source |
Vector with indexes of destiny states to keep. |
v_index_souce_destiny_hh |
Vector with indexes of source and destiny states of the household model. |
m_possibilities |
Matrix with possible combinations of household |
r_flow |
Daily rate of flow. |
n_source_states |
Number of source states. |
m_hh_out |
Matrix with outflows from the source states, which are the flows that we are going to balance with the inflows we will compute inside the function. |
A matrix with inflow rates to the destiny states.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.