per_facility_summary function

Function that extracts summary statistics from entire database

Function that extracts summary statistics from entire database

per_facility_summary(base, verbose = FALSE, ...)

Arguments

  • base: (data.table). A subject discharge database, in the form of a data.table. The data.table should have at least the following columns: sID: subjectID (character) fID: facilityID (character) Adate: admission date (date) Ddate: discharge date (date)
  • verbose: (boolean) print diagnostic messages. Default is TRUE.
  • ...: other parameters passed on to internal functions

Returns

a data table with one row per facility, showing mean LOS, number of subjects, and number of admissions

Examples

mydb <- create_fake_subjectDB(n_subjects = 100, n_facilities = 10) myBase <- checkBase(mydb) per_facility_summary(myBase)
  • Maintainer: Pascal Crépey
  • License: GPL-3
  • Last published: 2024-12-22

Downloads (last 30 days):