Effects of time‐invariant covariates on the estimation of longitudinal trends for transition mixed models