spec_summary: Create a specification table for a selected variable.

View source: R/spec_curve.R

spec_summaryR Documentation

Create a specification table for a selected variable.

Description

Returns estimates for a selected variable across the multiverse along with the universe specification information in a table. The resulting table can be used for spe_curve().

Usage

spec_summary(.mverse, var, conf.int = TRUE, conf.level = 0.95)

Arguments

.mverse

A mverse object.

var

A character specifying the variable of interest.

conf.int

Whether the table should include confidence intervals.

conf.level

The confidence level for the confidence level and is_significant.

Value

A spec_summary object that includes estimates and specification across the multiverse for the selected term(s). A boolean column is_significant indicates whether p.value for the universe is less than the specified significance level (1 - conf.level).

See Also

Other specification curve analysis: spec_curve()

Examples

femininity <- mutate_branch(
  1 * (MasFem > 6), 1 * (MasFem > mean(MasFem))
)
intensity <- mutate_branch(
  Minpressure_Updated_2014,
  Category,
  NDAM,
  HighestWindSpeed
)
model <- formula_branch(
  log(alldeaths + 1) ~ femininity,
  log(alldeaths + 1) ~ femininity * intensity
)
mv <- mverse(hurricane) %>%
  add_mutate_branch(femininity) %>%
  add_mutate_branch(intensity) %>%
  add_formula_branch(model) %>%
  lm_mverse()
spec_summary(mv, "femininity")

mverse documentation built on June 21, 2025, 5:09 p.m.