plot.collindlnmlinear: Visualizes effects of collinearity in distributed lag model...

View source: R/plotcollindlnm.R

plot.collindlnmlinearR Documentation

Visualizes effects of collinearity in distributed lag model under an hypothetical linear effect pattern.

Description

Visualize the results from a distributed lag model under an hypothetical linear effect pattern provided by the user, generated using the function collindlnm.

Usage

## S3 method for class 'collindlnmlinear'
plot(x, lags = NULL, ...)

Arguments

x

an object of class "collindlnmlinear", which is generated by the function collindlnm with shape = "linear".

lags

a number or a numeric vector indicating at what lags the results will be visualized. Default (NULL) shows all lags.

...

other parameters to be passed through to plot function.

Value

A plot showing a comparison between the results under the fitted model and the results under the hypothetical true effect.

See Also

collindlnm, plot.collindlnmnonlinear.

Examples

# For detailed examples:
browseVignettes("collin")

collin documentation built on Sept. 19, 2023, 5:06 p.m.