R/summary.Bayesiantreg.R

Defines functions summary.Bayesiantreg

Documented in summary.Bayesiantreg

summary.Bayesiantreg <-
function(object, ...){
  
   TAB <- cbind(Coefficient = object$coefficients,
                L.CredIntv = as.numeric(object$interv[,1]),
                U.CredIntv = as.numeric(object$interv[,2])
  )
  
  colnames(TAB) <- c("Estimate", "L.CredIntv",  "U.CredIntv")
  
  
  AIC <- object$AIC
  BIC <- object$BIC
  DIC <- object$DIC
  PseudoDeviance <-object$PseudoDeviance 
  
  Info <- as.matrix(c(AIC, BIC, DIC, PseudoDeviance))
  rownames(Info) <- c("AIC", "BIC", "DIC", "PseudoDeviance")
  
  res <- list(call=object$call, coefficients=TAB, Criteria=Info)  
  
  class(res) <- "summary.Bayesiantreg"
  res  
}

Try the Bayesiantreg package in your browser

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

Bayesiantreg documentation built on May 29, 2024, 6:44 a.m.