R/util.R

print.robreg3S <- function(x, digits = max(3, getOption("digits") - 3), ...)
{
  cat("Coefficients:\n")
  print(format(x$Summary.Table, digits = digits), print.gap = 2, quote = FALSE)
  cat("\n")
  invisible(x)
}

coef.robreg3S <- function(object, ...) object$coef

summary.robreg3S <- function(object, ...) object$Summary.Table

confint.robreg3S <- function(object, ...) {
	if( all(is.na(object$Summary.Table[,2] )) ) return( NA )
	cbind( object$Summary.Table[,1] - qnorm(0.975) * object$Summary.Table[,2],
		object$Summary.Table[,1] + qnorm(0.975) * object$Summary.Table[,2] )
	
}

Try the robreg3S package in your browser

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

robreg3S documentation built on May 2, 2019, 1:05 p.m.