Method for plotting DLMMs for model summary of class 'tdlmm'. Includes plots for marginal exposure effects as well as interactions between two exposures.
# S3 method for summary.tdlmm
plot(
x,
type = "marginal",
exposure1 = NULL,
exposure2 = NULL,
time1 = c(),
time2 = c(),
show.cw = TRUE,
cw.plots.only = TRUE,
trueDLM = NULL,
scale = NULL,
...
)A plot of distributed lag effect or interaction surface estimated with tdlmm
an object of type 'summary.tdlmm' from summary.tdlmm() output
plot type, 'marginal' (default)
exposure for plotting DLM
exposure paired with 'exposure1' for plotting interaction
plot a cross section from an interaction plot at specific time for 'exposure1'
plot a cross section from an interaction plot at specific time for 'exposure2'
indicate location of critical windows in interaction plot with red points
show only plots with critical windows
A vector of true effects that can be obtained from the simulated data. Only applicable for simulation studies
default = NULL, if scale is not NULL, the effects are exponentiated
additional plotting parameters for title and labels
plot.summary.tdlmm