impacts {sphet}R Documentation

Generate impacts for spreg lag and sarar models

Description

Generate impacts for spreg lag and sarar models

Usage

impacts(obj, ...)

Arguments

obj

An object of class sphet

...

Additional arguments to be passed

Value

Estimate of the Average Total, Average Direct, and Average Indirect Effects

Examples

data(columbus, package="spdep")
listw <- spdep::nb2listw(col.gal.nb)
res <- spreg(CRIME~HOVAL + INC, data=columbus , listw= listw,
            het = TRUE, verbose = FALSE, model = "sarar")
summary(res)
effects <- impacts(res, listw = listw, R = 399)
summary(effects)

[Package sphet version 2.0 Index]