{'fraction_non_alphanumeric': 0.0176678445229682, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Joint Model for Longitudinal and Time-to-event Data in Social and Life Course Research: Employment Status and Time to Retirement

Longitudinal studies including a time-to-event outcome in social research often use a form of event history analysis to analyse the influence of time-varying endogenous covariates on the time-to-event outcome. Many standard event history models however assume the covariates of interest to be exogenous and inclusion of an endogenous covariate may lead to bias. Although such bias can be dealt with by using joint models for longitudinal and time-to-event outcomes, these types of models are underused in social research. In order to fill this gap in the social science modelling toolkit, we introduce a novel Bayesian joint model in which a multinomial longitudinal outcome is modelled simultaneously with a time-to-event outcome. The methodological novelty of this model is that it concerns a correlated random effects association structure that includes a multinomial longitudinal outcome. We show the use of the joint model on Danish labour market data and compare the joint model to a standard event history model. The joint model has three advantages over a standard survival model. It decreases bias, allows us to explore the relation between exogenous covariates and the longitudinal outcome and can be flexibly extended with multiple time-to-event and longitudinal outcomes.