make_charts {charts} | R Documentation |
make_charts
Description
This function executes an interrupted time series analysis.
Usage
charts(content, topic, outcome, counted, timeperiod, goalu, goall, type, theme)
Arguments
content |
matrix of data |
topic |
Title for the plot |
outcome |
Label for y-axis for the plot, either 'conforming' or 'non-conforming' |
counted |
If c-chart: events or total |
timeperiod |
day, week, month, year |
goalu |
optional horizontal line to indicate the upper boundry of the goal range |
goall |
optional horizontal line to indicate the lower boundry of the goal range |
type |
Either: Control chart (proportions), Control chart (counts), Segmented regression (proportions), Segmented regression (counts), Run chart (avoid), Box chart for before-after (avoid) |
theme |
not implemented |
Author(s)
References
Taljaard M, McKenzie JE, Ramsay CR, Grimshaw JM. The use of segmented regression in analysing interrupted time series studies: an example in pre-hospital ambulance care. Implement Sci. 2014 Jun 19;9:77. doi: 10.1186/1748-5908-9-77. PMID: 24943919
Auerbach AD, Landefeld CS, Shojania KG. The tension between needing to improve care and knowing how to do it. N Engl J Med. 2007 Aug 9;357(6):608-13. PMID: 17687138.