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)


cdriveraus/ctsem documentation built on April 18, 2024, 5:24 a.m.