st_effects: Total, Direct, and Indirect Spatiotemporal Effects for the...

View source: R/st_effects.R

st_effectsR Documentation

Total, Direct, and Indirect Spatiotemporal Effects for the STADL (sy0,ty1) Model.

Description

st_effects calculates both the short and long-run total, direct and indirect effects of shocks to sample units' covariates using the last cross-section of the data.

Usage

st_effects(spobj, wm, tlag, covariate)

Arguments

spobj

An object created by the ntspreg function for a STADL (sy0,ty1) Model.

wm

a list created by the make_ntspmat function that includes the spatial weights #' matrix.

tlag

Name of a variable that identifies the temporal lag of an outcome.

covariate

Name of a variable to be shocked.

Value

The output will be a dataframe.

Examples

 ## Not run: 
fx <- st_effects(sar,wm,tlag,x)

## End(Not run)

judechays/STADL documentation built on May 12, 2022, 10:50 p.m.