Format scientific conclusions for dataset articles

Description

Creates concise scientific conclusion text for the dataset article workflow by summarizing the adjusted exposure effect direction and statistical evidence.

Usage

format_scientific_conclusions(
  can_fit_model,
  fit_adjusted,
  model_family,
  exposure_var,
  outcome_var,
  confounder_var
)

Arguments

can_fit_model Logical indicating whether variables were sufficient to fit the model workflow.
fit_adjusted A fitted adjusted model object (typically from stats::lm() or stats::glm()).
model_family Character scalar naming the model family used in the workflow.
exposure_var Character scalar naming the primary exposure variable.
outcome_var Character scalar naming the outcome variable.
confounder_var Character scalar naming the adjustment confounder variable.

Value

A single character string containing scientific conclusion text.