LRM: Find the LRM

Description Usage Arguments Value Examples

Description

Find the long run multiplier/propensity

Usage

1
LRM(yvar, xvar, lags = 3, other_vars = "", df, time_var = "year")

Arguments

yvar

The regressand/dependent variable in the FDL model

xvar

The variable within the Finite Distributed Lag (FDL) model that will be the regressor. E.g. lpop

lags

The number of lags of the x variable

other_vars

variables to be included (not lagged). Input using a vector such as: c("lprice", "linvpc")

df

The dataframe which the model is based upon, e.g. my_data or NASA.

time_var

The variable in the dataset which marks the year of the observations. E.g. "year".

Value

It prints the LRM its standard error and returns the LRM

Examples

1
2
3
4
5
6
#Sourcing the data from the user's computer
file <- system.file("extdata", "fertil3.txt", package="Kenometrics")
fertil3_data <- read.delim(file)

#Using the function
LR_prop <- LRM("gfr", "pe", 3, other_vars=c("ww2", "pill"), df=fertil3_data)

pointonjoel/Kenometrics documentation built on Jan. 24, 2021, 6:05 a.m.