plot_cohort_attrition
plot_cohort_attrition(result, *, show=('subjects', 'records'))Plot cohort attrition as a flow diagram.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| result | SummarisedResult from summarise_cohort_attrition. | required | |
| show | Which metrics to display ("subjects" and/or "records"). | ('subjects', 'records') |
Returns
| Name | Type | Description |
|---|---|---|
| matplotlib.figure.Figure |