R/lbreg.formula.R

Defines functions lbreg.formula

lbreg.formula <- function(formula, data=list(), ...)
{
  data <- na.omit(data)
  mf <- model.frame(formula=formula, data=data)
  terms <- attr(mf, "terms")
    
  fit <- lbreg.default(x=model.matrix(terms, mf), y=model.response(mf), ...)  
  
  fit$terms <- terms
  fit$call <- match.call()
  fit$formula <- formula
  fit$data <- data
  fit
}

Try the lbreg package in your browser

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

lbreg documentation built on Dec. 26, 2019, 5:06 p.m.