Text this: Joint models in big data: simulation-based guidelines for required data quality in longitudinal electronic health records