Skip to contents

new_meta_fit() is the low-level constructor for <meta_fit>, the class returned by meta_pool(), meta_regress(), meta_subgroup(), meta_multilevel() and meta_trimfill(). It is a tibble subclass whose rows are model coefficients (term, estimate, std.error, statistic, p.value, conf.low, conf.high). The model internals, including the heterogeneity estimates and the study level inputs, are kept in the "fit" attribute and are read by glance(), augment(), predict() and ggplot2::autoplot().

Usage

new_meta_fit(x, fit = list())

is_meta_fit(x)

Arguments

x

A data frame of coefficients.

fit

A named list of model internals.

Value

new_meta_fit() returns a <meta_fit>. is_meta_fit() returns a single logical value.

Examples

fit <- meta_pool(meta_effect_size(bcg_trials, "RR",
  event1 = tpos, n1 = tpos + tneg, event2 = cpos, n2 = cpos + cneg
))
is_meta_fit(fit)
#> [1] TRUE