LOS_model | R Documentation |
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.
data(LOS_model)
Data frame with five columns
A fictional patient ID number
A factor representing one of ten fictional hospital trusts, for example Trust1
Age in years of each fictional patient
In-hospital length of stay in days. The difference between admission and discharge date in dates
Binary for death status: 0 = survived, 1= died in hospital
Generated by Chris Mainey, Feb-2019
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.