Learn R Programming

bitrugs (version 0.1)

hospitaldata: Example hospital data

Description

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

Usage

data(hospitaldata)

Arguments

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

Run this code
data(hospitaldata)
head(hospitaldata$epi)

Run the code above in your browser using DataLab