R/resid.R

residuals.liu <- function(object, ...) {
  y <- object$y
  lfitted <- object$lfit
  resid <- apply(lfitted, 2, function(x) {
    y - x
  })

  #class(resid)<-"liuresid"

  resid
}

# print.residuals <- function(x,  ...) {
#   cat("Call:\n", paste(deparse(x$call), sep = "\n", collapse = "\n"), "\n\n", sep =
#         "")
#
#   print(resid(x), ...)
#   cat("\n")
#   invisible(x)
# }

Try the liureg package in your browser

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

liureg documentation built on May 2, 2019, 8:34 a.m.