R/summary.Diffepoce.R

Defines functions summary.Diffepoce

Documented in summary.Diffepoce

#' @export
#'
summary.Diffepoce <- function(object,...){
	x <- object
	if (!inherits(x, "Diffepoce")) stop("use only with \"Diffepoce\" objects")
	cat("Difference in Expected Prognostic Observed Cross-Entropy (EPOCE) estimates", "\n")
	cat(" from the two following joint latent class models:", "\n")
	cat(" \n")
	cl <- x$call.JLCM1
	cl$B <- NULL
	dput(cl)
	cl <- x$call.JLCM2
	cl$B <- NULL
	dput(cl)
	cat(" \n")	
	if(x$new.data==TRUE) {
	cat("Difference in the Mean Prognostic Observed Log-likelihood (MPOL)", "\n")
	cat("      and its 95% tracking interval", "\n")


	}
	else{
	cat("Difference in the Cross-Validated Prognostic Observed Log-likelihood (CVPOL)", "\n")
	cat("      and its 95% tracking interval", "\n")
	}
	cat(" \n")
	print(x$DiffEPOCE,row.names=F,na.print=".")
	cat(" \n")
}
CecileProust-Lima/lcmm documentation built on March 3, 2024, 5:23 p.m.