The Statistical Analysis of Doubly Truncated Data: With Applications in R