R/gvlma.lm.R

"gvlma.lm" <-
function(lmobj, alphalevel = 0.05, timeseq)
  {
    if (class(lmobj) != "lm")
      stop("First argument to gvlma.lm must be an lm object.")
    cl <- match.call()
    n <- length(fitted(lmobj))
    # check timeseq
    if (missing(timeseq)) v <- 1:n else v <- timeseq
    if (length(v) != n) stop("Argument timeseq of incorrect length.")
    #
    z <- computegvlma(lmobj, alphalevel, v)
    #
    z$GlobalTest$call <- cl
    z
  }

Try the gvlma package in your browser

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

gvlma documentation built on May 2, 2019, 9:20 a.m.