coef.summary_regmedint {regmedint} | R Documentation |
Extract the result matrix from a summary_regmedint object.
Description
Extract the result matrix from a summary_regmedint object.
Usage
## S3 method for class 'summary_regmedint'
coef(object, ...)
Arguments
object |
An object with a class of |
... |
For compatibility with the generic. |
Value
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))
[Package regmedint version 1.0.1 Index]