R/summary.gim.R

Defines functions summary.gim

summary.gim <- function(object, ...){
  
  se <- sqrt(diag(object$vcov))
  tval <- coef(object) / se
  
  TAB <- cbind(Estimate = coef(object), 
               StdErr = se, 
               t.value = tval, 
               p.value = pchisq(tval^2, df = 1, lower.tail = FALSE))
  colnames(TAB) <- c('Estimate', 'Std. Error', 'z value', 'Pr(>|z|)')
  
  res <- list(call = object$call, 
              coefficients = TAB)
  
  class(res) <- 'summary.gim'
  res
  
}

Try the gim package in your browser

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

gim documentation built on July 1, 2020, 6:29 p.m.