https://github.com/cran/metafor
Raw File
Tip revision: 5e080e28c25477c201792f082375d718b86ed758 authored by Wolfgang Viechtbauer on 28 March 2024, 16:00:06 UTC
version 4.6-0
Tip revision: 5e080e2
formula.rma.r
formula.rma <- function(x, type="mods", ...) {

   mstyle <- .get.mstyle()

   .chkclass(class(x), must="rma")

   type <- match.arg(type, c("mods", "yi", "scale"))

   if (type == "scale" && x$model != "rma.ls")
      stop(mstyle$stop("Can only use type='scale' for location-scale models."))

   if (type == "mods")
      return(x$formula.mods)

   if (type == "yi")
      return(x$formula.yi)

   if (type == "scale")
      return(x$formula.scale)

}
back to top