R/formula.mixmeta.R

Defines functions formula.mixmeta

###
### R routines for the R package mixmeta (c)
#
formula.mixmeta <-
function(x, ...) {
#
################################################################################
# EXTRACTS FORMULA FROM MIXMETA OBJECT (SIMILAR TO lm/glm)
#
  form <- x$formula
  if (!is.null(form)) {
    form <- formula(x$terms)
    environment(form) <- environment(x$formula)
    form
  }
  else formula(x$terms)
}

Try the mixmeta package in your browser

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

mixmeta documentation built on Oct. 16, 2021, 5:09 p.m.