https://github.com/cran/metafor
Raw File
Tip revision: b1f41d890908ef18694339d749b7e7983a3e2399 authored by Wolfgang Viechtbauer on 25 September 2016, 16:37:23 UTC
version 1.9-9
Tip revision: b1f41d8
escalc.r
escalc <- function(measure, formula, ...) {

   if (missing(measure))
      stop("Must specify an effect size or outcome measure via the 'measure' argument.")

   ### catch cases where the user specifies a formula for the 'measure' argument
   ### (i.e., incorrectly uses the first argument to specify the formula)

   if (inherits(measure, "formula"))
      stop("Must specify the formula via the second ('formula') argument.")

   ### if formula argument is used, dispatch accordingly

   if (!missing(formula))
      UseMethod("escalc", formula)

   ### otherwise dispatch to escalc.default

   UseMethod("escalc", NULL)

}
back to top