Skip to contents

This function performs regression analysis on multiply imputed data using linear mixed-effects models and pools the results using Rubin's Rules.

Usage

regression_analysis(
  births,
  targets,
  as_cat_label,
  as_level_col,
  regression_formula,
  output_dir
)

Arguments

births

A data frame containing the birth data with imputation identifiers.

targets

A character vector of target variables (health outcomes).

as_cat_label

A character vector of arsenic categories (excluding reference).

as_level_col

A character string for the arsenic level column name.

regression_formula

A formula object or character string for the regression model.

output_dir

A character string for the output directory path.

Value

A named list of data frames with pooled regression results for each target.