plot_los_distribution_admission_method: Length of stay distribution for hospitalized patients

View source: R/plot_los_distribution_admission_method.R

plot_los_distribution_admission_methodR Documentation

Length of stay distribution for hospitalized patients

Description

plot_los_distribution_admission_method shows the distribution of length of stay for people in the inpatient department, stratified by the type of discharge.

Usage

plot_los_distribution_admission_method(
  data,
  startDate,
  endDate,
  returnPlot,
  hospitalName = "Hospital Name"
)

Arguments

data

Hospital episode data.

startDate

Date of earliest discharge to be included in the analysis.

endDate

Date of latest admission to be included in the analysis.

returnPlot

If TRUE returns a plot, otherwise returns a dataframe.

hospitalName

Name of the hospital.

Value

A plot (default) or a dataframe showing the distribution of length of stay for hospitalized patients.

Examples

## Not run: 
TBD

## End(Not run)

HorridTom/hospitalflow documentation built on June 14, 2022, noon