ctResiduals | R Documentation |
This function takes a fit object from the ctsem package and extracts the standardized residuals.
ctResiduals(fit)
fit |
A fitted model object generated by the ctsem package. |
This function uses the ctStanKalman
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.
A data table containing the standardized residuals for each subject and time point.
ctStanKalman
data.table::setDTthreads(1) #ignore this line
# Example usage:
residuals <- ctResiduals(ctstantestfit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.