hdp: Hospital, doctor, patient (hdp) dataset

hdpR Documentation

Hospital, doctor, patient (hdp) dataset

Description

This dataset has a three-level, hierarchical structure with patients nested within doctors within hospitals. The simulation code can be found at <https://stats.idre.ucla.edu/r/codefragments/mesimulation/#setup>.

Usage

data(hdp)

Format

A data frame with 8,525 rows and 17 variables:

Age

Continuous in years but recorded at a higher degree of accuracy.

Married

Binary, married/living with partner or single.

FamilyHx

Binary (yes/no), does the patient have a family history (Hx) of cancer?

SmokingHx

Categorical with three levels, current smoker, former smoker, never smoked.

Sex

Binary (female/male).

CancerStage

Categorical with four levels, stages 1-4.

LengthofStay

Count number of days patients stayed in the hospital after surgery.

WBC

Continuous, white blood count. Roughly 3,000 is low, 10,000 is middle, and 30,000 per microliter is high.

RBC

Continuous, red blood count.

BMI

Body mass index given by the formula (kg / meters^2).

IL6

Continuous, interleukin 6, a proinflammatory cytokine commonly examined as an indicator of inflammation, cannot be lower than zero.

CRP

Continuous, C-reactive protein, a protein in the blood also used as an indicator of inflammation. It is also impacted by BMI.

HID

Hospital identifier.

DID

Doctor identifier

Experience

Years as a doctor.

School

Whether the school doctor trained at was high quality or not.

remission

Cancer in remission? 1 = yes, 0 = no.

Source

https://stats.oarc.ucla.edu/r/codefragments/mesimulation/


MLMusingR documentation built on May 29, 2024, 7:35 a.m.