Joint Models for Longitudinal and Time-to-Event Data (With Applications in R)