This is used by residuals.mmrm_tmb() to calculate Pearson residuals.
residuals.mmrm_tmb()
h_residuals_pearson(object)
object
(mmrm_tmb) the fitted MMRM.
mmrm_tmb
Vector of residuals.