Learn R Programming

AFR (version 0.3.6)

reg_plot: Regression forecast plot

Description

The function depicts forecast and actual data.

Usage

reg_plot(model, dataset)

Arguments

model

An object of class lm.

dataset

A dataset based on which model was built.

Author

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

Examples

Run this code
data(macroKZ)
model <- lm(real_gdp ~ usdkzt + eurkzt + imp + exp, data = macroKZ)
reg_plot(model, macroKZ)

Run the code above in your browser using DataLab