ctPostPredData: Create a data.table to compare data generated from a ctsem...

View source: R/ctStanPostPredict.R

ctPostPredDataR 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)


ctsem documentation built on Sept. 11, 2024, 9:06 p.m.