Statistics for Data driven longitudinal model with application to HIV differentiated care