```python
from pygom import SimulateOde, Transition as T
```


```python
state = ['S_v', 'S_h', 'I_v', 'I_h']
```


```python
param = ['beta_v', 'beta_h', 'mu_v', 'mu_h',
'lambda_v', 'lambda_h', 'gamma']
```


```python
t1 = T('S_h', 'lambda_h-mu_h*S_h-beta_h*S_h*I_v+gamma*I_h')
```


```python
t2 = T('S_v', 'lambda_v-mu_v*S_v-beta_v*S_v*I_h')
```


```python
t3 = T('I_h', 'beta_h*S_h*I_v-(mu_h+gamma)*I_h')
```


```python
t4 = T('I_v', 'beta_v*S_v*I_h-mu_v*I_v')
```


```python
ode = SimulateOde(state, param, ode=[t1,t2,t3,t4])
```


```python
from pygom.model.epi_analysis import R0
```


```python
ode = ode.get_unrolled_obj()
```

    /usr/local/lib/python3.7/site-packages/sympy/__init__.py:676: SymPyDeprecationWarning: 
    
    importing sympy.matrices.matrices with 'from sympy import *' has been
    deprecated since SymPy 1.6. Use import sympy.matrices.matrices
    instead. See https://github.com/sympy/sympy/issues/18245 for more
    info.
    
      deprecated_since_version="1.6").warn()



```python
R0(ode, ['I_v','I_h'])
```




$\displaystyle \sqrt{\frac{\beta_{h} \beta_{v} \lambda_{h} \lambda_{v}}{\mu_{h} \mu_{v}^{2} \left(\gamma + \mu_{h}\right)}}$




```python
ode.get_transition_graph()
```


```python

```

45b9259179f0b7068e7b82809505382e94feb8f2
ipynb
Jupyter Notebook
Notebooks/covid-19-caution/PyGom_R0_demo.ipynb
ProtoLife/covid-recovery
b3989f110c6961cc51da673fc33c6384cf7d6de6
MIT
Notebooks/covid-19-caution/PyGom_R0_demo.ipynb
ProtoLife/covid-recovery
b3989f110c6961cc51da673fc33c6384cf7d6de6
MIT
2020-05-24T00:06:54.000Z
2020-05-25T19:59:44.000Z
Notebooks/covid-19-caution/PyGom_R0_demo.ipynb
ProtoLife/covid-recovery
b3989f110c6961cc51da673fc33c6384cf7d6de6
MIT
Qwen/Qwen-72B
1. YES
2. YES