dec_plot: Decomposition plot

View source: R/dec_plot.R

dec_plotR Documentation

Decomposition plot

Description

The function depicts decomposition of regressors as a stacked barplot

Usage

dec_plot(model, dataset, print_plot = TRUE)

Arguments

model

An object of class lm.

dataset

A dataset based on which model was built

print_plot

logical

Value

A plot that shows decomposition of the model.

Author(s)

The Agency of the Republic of Kazakhstan for Regulation and Development of Financial Market (AFR)

References

Hebbali, Aravind. Published 2020-02-10. olssr package

Examples

model <- lm(real_gdp ~ usdkzt + eurkzt + imp+exp, data = macroKZ)
dec_plot(model, macroKZ)

AFR documentation built on March 22, 2022, 1:05 a.m.