Learn R Programming

MLDataR (version 1.0.1)

care_home_incidents: Care Home Incidents

Description

a NHS patient safety incidents dataset: https://www.england.nhs.uk/patient-safety/report-patient-safety-incident/ dataset that has been synthetically generated against real data

Usage

care_home_incidents

Arguments

Format

A data frame with 1216 rows and 12 variables:

CareHomeFail

a binary indicator to specify whether a certain care home is failing

WeightLoss

aggregation of incidents indicating weight loss in patient

Medication

medication missed aggregaation

Falls

Recorded number of patient falls

Choking

Number of patient choking incidents

UnexpectedDeaths

unexpected deaths in the care home

Bruising

Number of bruising incidents in the care home

Absconsion

Absconding from the care home setting

ResidentAbuseByResident

Abuse conducted by one care home resident against another

ResidentAbuseByStaff

Incidents of resident abuse by staff

ResidentAbuseOnStaff

Incidents of residents abusing staff

Wounds

Unexplained wounds against staff

Examples

Run this code
library(dplyr)
data(care_home_incidents)
# Convert diabetes data to factor'
ch_incs <- care_home_incidents %>%
 mutate(CareHomeFail = as.factor(CareHomeFail))
 ch_incs %>% glimpse()
 # Check factor
 factor(ch_incs$CareHomeFail)

Run the code above in your browser using DataLab