View source: R/08_regmedint_class_user_methods.R
print.summary_regmedint | R Documentation |
summary.regmedint
Print results contained in a summary_regmedint
object with additional explanation regarding the evaluation settings.
## S3 method for class 'summary_regmedint'
print(x, ...)
x |
An object of the class |
... |
For compatibility with the generic function. |
Invisibly return the first argument.
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)
## Implicit printing
summary(regmedint_obj)
## Explicit printing
print(summary(regmedint_obj))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.