ctPostPredPlots: Create diagnostic plots to assess the goodness-of-fit for a...

ctPostPredPlotsR Documentation

Create diagnostic plots to assess the goodness-of-fit for a ctsem model.

Description

This function generates a set of diagnostic plots to assess the goodness-of-fit for a fitted ctsem model.

Usage

ctPostPredPlots(fit)

Arguments

fit

A fitted ctsem model.

Details

The function calculates various statistics and creates visualizations to evaluate how well the generated data matches the original data used to fit the model. The plots included are as follows: - A scatter plot comparing observed values and the median of generated data. - A plot showing the proportion of observed data outside the 95 - A density plot of the proportion of observed data greater than the generated data. - A time series plot of the proportion of observed data greater than generated data.

See Also

Other ctsem functions for model fitting and analysis.

Examples

ctPostPredPlots(ctstantestfit)


ctsem documentation built on Nov. 2, 2023, 6:03 p.m.