View source: R/07_calc_myreg_mreg_linear_yreg_logistic.R
| calc_myreg_mreg_linear_yreg_logistic | R Documentation | 
Construct functions for the conditional effect estimates and their standard errors in the mreg linear / yreg logistic setting. Internally, this function deconstructs model objects and feeds parameter estimates to the internal worker functions calc_myreg_mreg_linear_yreg_logistic_est and calc_myreg_mreg_linear_yreg_logistic_se.
calc_myreg_mreg_linear_yreg_logistic(
  mreg,
  mreg_fit,
  yreg,
  yreg_fit,
  avar,
  mvar,
  cvar,
  emm_ac_mreg,
  emm_ac_yreg,
  emm_mc_yreg,
  interaction
)
mreg | 
 A character vector of length 1. Mediator regression type:   | 
mreg_fit | 
 Model fit from   | 
yreg | 
 A character vector of length 1. Outcome regression type:   | 
yreg_fit | 
 Model fit from   | 
avar | 
 A character vector of length 1. Treatment variable name.  | 
mvar | 
 A character vector of length 1. Mediator variable name.  | 
cvar | 
 A character vector of length > 0. Covariate names. Use   | 
emm_ac_mreg | 
 A character vector of length > 0. Effect modifiers names. The covariate vector in treatment-covariate product term in the mediator model.  | 
emm_ac_yreg | 
 A character vector of length > 0. Effect modifiers names. The covariate vector in treatment-covariate product term in the outcome model.  | 
emm_mc_yreg | 
 A character vector of length > 0. Effect modifiers names. The covariate vector in mediator-covariate product term in outcome model.  | 
interaction | 
 A logical vector of length 1. The presence of treatment-mediator interaction in the outcome model. Default to TRUE.  | 
A list containing a function for effect estimates and a function for corresponding standard errors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.