hospitaldata: Example hospital data

Description Usage Format Details Examples

Description

An example dataset, comprising 100 hospital admissions over 50 days, including swab results and genetic distance data.

Usage

1

Format

A list comprising

epi

Matrix of epidemiological data, consisting of columns patient ID, day of admission, day of discharge, time of colonization, source of infection, and infection group.

resmat

Matrix of test results. Each row represents the corresponding patient in epi. Each column represents a day, spanning the interval over which data were collected. 0=Negative, 1=Positive, -1=Missing

distmat

Pairwise genetic distance data. Each row and column corresponds to patient ID in patientseqIDs.

patientseqIDs

Vector of patient IDs corresponding to the rows and columns of distmat.

Details

In the epi matrix, the source of infection is the patient ID of the true source of infection. A value of -1 indicates that the patient was infected prior to ward admission. Infection group denotes the genotype group to which this patient belongs. Multiple importations can belong to the same genotype group. Within-group genetic diversity is typically lower than between-group diversity. The group is assigned the ID of the first patient of the genotype group who enters the ward.

Examples

1
2

Example output

     pID day_adm day_dis col_t psource group
[1,]   1       2       6     0       0     0
[2,]   2       2       6     0       0     0
[3,]   3       2       6     2      -1     3
[4,]   4       3       6     3      -1     4
[5,]   5       4      11     0       0     0
[6,]   6       4       9     0       0     0

bitrugs documentation built on May 2, 2019, 8:55 a.m.