1. Describe the survival times.
Produce and describe a histogram of the survival times for these patients.
Hint. R Hint
We will just focus on the times data, so you can copy and load all the data and then let
times = heroin$times
Solution.
The distribution of treatment times is skewed to the right, ranging from about 0 to 1000 days with a mean 402.6 days and median 367.5 days.

Histogram of survival times, skewed to the right, ranging from about 0 to 1000 days






