View source: R/length_of_stay.R
calculate_los | R Documentation |
Calculate CMAM length of stay and median length of stay for a cohort of CMAM discharges
calculate_los(admission_date, discharge_date)
calculate_los_median(admission_date, discharge_date, group = NULL)
admission_date |
Date of admission in |
discharge_date |
Date of discharge in |
group |
A character value/s with the same length as |
Numeric value or vector of numeric values for length-of-stay in days
for calculate_los()
. A numeric value for median length-of-stay in
days for calculate_los_median()
. If group
is not NULL, a vector of
numeric values for median length-of-stay in days with length equal to the
number of groups.
Ernest Guevarra
calculate_los(admission_date = "2010-03-15",
discharge_date = "2010-06-14")
calculate_los(admission_date = c("2010-03-15", "2010-03-16"),
discharge_date = c("2010-06-14", "2010-06-20"))
calculate_los_median(
otp_beneficiaries$admDate,
otp_beneficiaries$disDate,
group = otp_beneficiaries$locality
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.