View source: R/08_regmedint_class_user_methods.R
coef.summary_regmedint | R Documentation |
Extract the result matrix from a summary_regmedint object.
## S3 method for class 'summary_regmedint'
coef(object, ...)
object |
An object with a class of |
... |
For compatibility with the generic. |
A matrix populated with results.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.