Data: esdcomp

Data was recorded on 44 doctors working in an emergency service at a hospital to study the factors affecting the number of complaints received.

A data frame with 44 observations on the following 6 variables.

visits
the number of patient visits

complaints
the number of complaints

residency
is the doctor in residency training N or Y

gender
gender of doctor F or M

revenue
dollars per hour earned by the doctor

hours
total number of hours worked