## Runner


Run the simulation for one or more replications.


Usage

``` python
Runner(config)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Create instance of Runner. |
| [run_reps()](#run_reps) | Run replications, as defined by config.n_reps. |
| [run_single()](#run_single) | Run a single replication and return results. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Create instance of Runner.


Usage

``` python
__init__(config)
```


##### Parameters


`config: object`  
Configuration object containing model parameters.


------------------------------------------------------------------------


#### run_reps()


Run replications, as defined by config.n_reps.


Usage

``` python
run_reps()
```


##### Returns


`dict`  
Dictionary with three DataFrames:

- "patients": concatenated per-patient results across runs.
- "run": summary of results for each run by response category.
- "overall": summary of results across runs by response category.


------------------------------------------------------------------------


#### run_single()


Run a single replication and return results.


Usage

``` python
run_single(run_number)
```


##### Parameters


`run_number: int`  
Simulation run identifier.


##### Returns


`dict`  
Dictionary with two DataFrames:

- "patients": per-patient results for the run.
- "run": summary of results for run by response category.
