Skip to contents

Fit an SLX model

slx()
Fit a Spatial-X (SLX) model
slx_weights()
Construct a spatial weights matrix

Interpretation

slx_effects()
Direct, indirect, and total effects from an SLX model
slx_compare()
Compare OLS, SLX, and other lm-like models side by side

Visualization

slx_plot_effects()
Coefficient plot of direct, indirect, and total effects
slx_plot_decay()
Plot how indirect effects decay across orders of W
slx_plot_shock()
Counterfactual shock plot
slx_plot_W()
Heatmap of a spatial weights matrix

Data

defense_burden
Defense burden data, 1995 cross-section
defense_burden_panel
Defense burden panel, 1951-2008

broom / modelsummary integration

tidy(<slx>) glance(<slx>)
Tidy and glance methods for SLX models
reexports tidy glance
Objects exported from other packages