ctPostPredData {ctsem} | R Documentation |
Create a data.table to compare data generated from a ctsem fit with the original data.
Description
This function allows for easy comparison of data generated from a fitted ctsem model with the original data used to fit the model. It provides options to include residuals in the comparison.
Usage
ctPostPredData(fit, residuals = F)
Arguments
fit |
A fitted ctsem model. |
residuals |
If set to TRUE, includes residuals in the comparison. |
Value
A data table containing the comparison between generated and original data.
See Also
Other ctsem functions for model fitting and analysis.
Examples
data_comparison <- ctPostPredData(ctstantestfit)
[Package ctsem version 3.10.4 Index]