st_effects | R Documentation |
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.
st_effects(spobj, wm, tlag, covariate)
spobj |
An object created by the |
wm |
a list created by the |
tlag |
Name of a variable that identifies the temporal lag of an outcome. |
covariate |
Name of a variable to be shocked. |
The output will be a dataframe.
## Not run: fx <- st_effects(sar,wm,tlag,x) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.