LOS_model: Hospital Length of Stay (LOS) Data

Description Usage Format Source Examples

Description

Artificially generated hospital data. Fictional patients at 10 fictional hospitals, with LOS, Age and Date status data Data were generate to learn Generalized Linear Models (GLM) concepts, modelling either Death or LOS.

Usage

1

Format

Data frame with five columns

ID

A fictional patient ID number

Organisation

A factor representing one of ten fictional hospital trusts, e.g. Trust1

Age

Age in years of each fictional patient

LOS

In-hospital length of stay in days. The difference between admission and discharge date in dates

Death

Binary for death status: 0 = survived, 1= died in hospital

Source

Generated by Chris Mainey chris.mainey@uhb.nhs.uk, Feb-2019

Examples

1
2
3
4
5
6
7
8
data(LOS_model)

model1 <- glm(Death ~ Age + LOS, data=LOS_model, family="binomial")
summary(model1)

# Now with an Age, LOS, and Age*LOS interaction.
model2<- glm(Death ~ Age * LOS, data=LOS_model, family="binomial")
summary(model2)

NHSRdatasets documentation built on March 14, 2021, 1:06 a.m.