R/summary.R

#' @export
summary.xtreg2way <- function (object, ...) {
  std <- sqrt(diag(object$aVarHat))
  df <- data.frame(coefficients = as.numeric(object$betaHat), se = std,
                   tstat = Matrix::t(object$betaHat) / std,
                   pval = (1 - stats::pnorm(abs(t(object$betaHat) / std), 0, 1)) / 2)
  colnames(df) <- c("coefficients","se","tstat","pval")
  print(df)
}

Try the xtreg2way package in your browser

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

xtreg2way documentation built on Aug. 11, 2020, 9:06 a.m.