R/formula.R

Defines functions formula.rlm

Documented in formula.rlm

#' @rdname rlm.summaries
#' 
#' @method formula rlm
#' @export
formula.rlm <- function(x, ...) {
  if(!is.null(x$formula)) {
    form <- formula(x$terms) # has . expanded
    environment(form) <- environment(x$formula)
    form
  } else {
    formula(x$terms)
  }
}

Try the rcane package in your browser

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

rcane documentation built on June 4, 2018, 5:04 p.m.