Check absolute fit of ctFit or ctStanFit object.
ctCheckFit(fit, niter = 500, probs = c(0.025, 0.5, 0.975))
ctsem fit object.
number of data generation iterations to use to calculate quantiles.
3 digit vector of quantiles to return and to test significance.
List containing a means and cov object, computed by sorting data into discrete time points. cov is a numeric matrix containing measures of the covariance matrices for observed and simulated data. The MisspecRatio column shows Z score difference for each lower triangular index of the covariance matrix of data -- observed covariance minus mean of generated, weighted by sd of generated covariance. means contains the empirical and generated data means.
for plotting help see plot.ctsemFitMeasure
# NOT RUN {
scheck <- ctCheckFit(ctstantestfit,niter=50)
# }
Run the code above in your browser using DataLab