LOS_model {NHSRdatasets} | R Documentation |
Hospital Length of Stay (LOS) Data
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
data(LOS_model)
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
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)
[Package NHSRdatasets version 0.3.0 Index]