R/summary.PICBayes.R

Defines functions summary.PICBayes

Documented in summary.PICBayes

summary.PICBayes <-
function(object, ...){
   coef.table<-cbind(object$coef, object$coef_ssd, object$coef_ci[,1], object$coef_ci[,2])
   dimnames(coef.table)<-list(object$nameX,c('Mean','Std. Dev.','CI_lower','CI_upper'))

   cat("\nPosterior inference of regression coefficients\n")
   print.default(coef.table)

   cat("\nDeviance information criterion: DIC=", object$DIC, sep="")
   cat("\nNegative log-likelihood: NLLK=", object$NLLK, sep="")
   cat("\nNumber of subjects: N=", object$N, "\n", sep="")
}

Try the PICBayes package in your browser

Any scripts or data that you put into this service are public.

PICBayes documentation built on Aug. 5, 2021, 9:06 a.m.