Functions for medical statistics book with some demographic data