View source: R/length_of_stay.R
calculate_median_los | R Documentation |
Calculate median length of stay for a cohort of CMAM discharges
calculate_median_los(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 |
A numeric value for median length-of-stay in days. 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_median_los(
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.