Code for the answer in Statistical method for characterizing the relationship between body mass and metabolic rate