plot_DLF | R Documentation |
Plot estimated cumulative effects from a DLIM object, can also compare estimated cumulative effects between a DLM and DLIM
plot_DLF(
new_modifiers,
mod_fit,
mod_name,
dlm_fit = NULL,
plot_by,
exposure_time = NULL,
exp_time_unit = "Time",
time_pts = NULL,
mod_trans = NULL,
link_trans = NULL
)
new_modifiers |
a vector of new modifier values for prediction (class " |
mod_fit |
DLIM model object (class " |
mod_name |
modifier name that follows variable name nomenclature (class " |
dlm_fit |
a list containing a |
plot_by |
choose to create plots for particular modifier values, "modifier", or particular time points, "time", (class " |
exposure_time |
optional vector of exposure-time points if the first time point does not correspond to exposure-time 1. Must have the same length as the number of exposure-time points (class " |
exp_time_unit |
option to provide the unit for the exposure time points, e.g., "month" or "week". Only used with |
time_pts |
a subset of exposure-time points if |
mod_trans |
if modifiers are transformed, specify back transformation function (class " |
link_trans |
if family for |
This function returns a ggplot for point-wise effects isolated by either time points or modifier, including a DLM if specified
dlim
Type vignette('dlimOverview')
for a detailed description.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.