map2_get_regression: Get regression results with multiple outcomes and exposures

map2_get_regressionR Documentation

Get regression results with multiple outcomes and exposures

Description

This function genartes regression results with multiple outcomes and exposures. For now, it only supports the interaction between one covariable and the exposure.

Usage

map2_get_regression(
  df,
  outcomes,
  exposures,
  covariates,
  outcome_type,
  random_slope_var = NULL,
  lme_method = "REML",
  sub_var = NULL,
  sub_group = NULL,
  interaction_var = NULL,
  multiply = T
)

Arguments

df

A tibble or dataframe of the data

outcomes

A character vector of outcomes

exposures

A character vector of exposures

covariates

A character vector of covariates

outcome_type

A string, can be one of these options:linear, binary, poisson, ordinal, tobit, normal_gee, binary_gee, poisson_gee, ordinal_gee, lme, logistic_glme

sub_var

A string of the subgroup analysis variable

sub_group

A string of the subgroup

interaction_var

a sting of the interaction covarite

multiply

logical, multiply = T specifies all possible combinations of outcomes and exposures

Value

A tibble


JiyueQin/tidyreport documentation built on Nov. 24, 2024, 9:24 a.m.