coef.summary_regmedint function

Extract the result matrix from a summary_regmedint object.

Extract the result matrix from a summary_regmedint object.

## S3 method for class 'summary_regmedint' coef(object, ...)

Arguments

  • object: An object with a class of summary_regmedint.
  • ...: For compatibility with the generic.

Returns

A matrix populated with results.

Examples

library(regmedint) data(vv2015) regmedint_obj <- regmedint(data = vv2015, ## Variables yvar = "y", avar = "x", mvar = "m", cvar = c("c"), eventvar = "event", ## Values at which effects are evaluated a0 = 0, a1 = 1, m_cde = 1, c_cond = 0.5, ## Model types mreg = "logistic", yreg = "survAFT_weibull", ## Additional specification interaction = TRUE, casecontrol = FALSE) coef(summary(regmedint_obj))