knitr::opts_chunk$set(collapse = TRUE, comment = "#>", fig.width = 7, fig.height = 7, fig.align = "center") library(tibble) library(ssnapstats)
The Fake Hospital dataset is not currently designed for any serious use beyond examples and testing code. Ideally a more complete and realistic dataset would allow more complex ideas to be demonstrated. We will however use it to demonstrate the functions throughout this vignette.
You can access this dataset as a tibble using the command:
ssnap_fake_data
The raw output from ssnap_fake_data looks like this:
ssnap_fake_data
SSNAPStats has a set of 'high level' functions for dealing with known SSNAP cohorts and measures sets to save you having to write functions picking the correct cohort and measures list.
Please note that the data from the Fake Hospital dataset is very incomplete so the values are not representative and in many cases will be missing.
testCohort <- ssnap_cohorts(ssnap_data = ssnap_fake_data, cohort = "Team72HrCohortKIs", period_type = "months", aggregate_by = "team")
To get a full list of available cohorts, look at the \code{ssnap_cohort_names} vector for available values (the help file describes more completely each cohort):
ssnap_cohort_names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.