Learn R Programming

ctsem (version 3.10.2)

ctPostPredData: 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)

Value

A data table containing the comparison between generated and original data.

Arguments

fit

A fitted ctsem model.

residuals

If set to TRUE, includes residuals in the comparison.

See Also

Other ctsem functions for model fitting and analysis.

Examples

Run this code
data_comparison <- ctPostPredData(ctstantestfit)

Run the code above in your browser using DataLab