Calculate some stats about referrals
Value
A data.frame with the following summary statistics on referrals/demand:
- demand_weekly
Numeric. Mean number of additions to the waiting list per week.
- demand_daily
Numeric. Mean number of additions to the waiting list per day.
- demand_cov
Numeric. Coefficient of variation in the time between additions to the waiting list.
- demand_count
Numeric. Total demand over the full time period.
Examples
referrals <- c.Date("2024-01-01", "2024-01-04", "2024-01-10", "2024-01-16")
removals <- c.Date("2024-01-08", NA, NA, NA)
waiting_list <- data.frame("referral" = referrals, "removal" = removals)
referral_stats <- wl_referral_stats(waiting_list)