R/08_regmedint_class_user_methods.R
coef.summary_regmedint.Rd
Extract the result matrix from a summary_regmedint object.
# S3 method for summary_regmedint
coef(object, ...)
An object with a class of summary_regmedint
.
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))
#> est se Z p lower upper
#> cde 0.541070807 0.29422958 1.8389409 0.06592388 -0.03560858 1.11775019
#> pnde 0.488930417 0.21049248 2.3227928 0.02019028 0.07637274 0.90148809
#> tnie 0.018240025 0.03706111 0.4921608 0.62260566 -0.05439841 0.09087846
#> tnde 0.498503455 0.21209540 2.3503737 0.01875457 0.08280410 0.91420281
#> pnie 0.008666987 0.02730994 0.3173565 0.75097309 -0.04485951 0.06219348
#> te 0.507170442 0.21090051 2.4047853 0.01618197 0.09381303 0.92052785
#> pm 0.045436278 0.09119614 0.4982259 0.61832484 -0.13330488 0.22417743