This function takes a fit object from the ctsem package and extracts the standardized residuals.
Value
A data table containing the standardized residuals for each subject and time point, with subjects labelled by their ids in the data.
Details
This function uses the ctKalmanArray function to calculate the standardized residuals
and then extracts and formats them as a data table. The standardized residuals represent the differences
between the observed and predicted values, divided by the standard errors of the observations.