impacts: Compute impacts from a Bayesian spatial econometrics model...

Description Usage Arguments Value Examples

View source: R/impacts.R

Description

This function will compute the impacts (direct, indirect and total) from a SEMCMC object.

Usage

1
2
3
4
impacts(obj, ...)

## S3 method for class 'SEMCMC'
impacts(obj, ...)

Arguments

obj

A SEMCMC object.

...

Extra argument to compute the impacts.

Value

A named list with MCMC objects for direct, indirect and total impacts.

Examples

1
2
3
4
5
6
data(columbus, package = "spdep")

W <- spdep::nb2mat(col.gal.nb, style = "W")
m.form <-  CRIME ~ INC + HOVAL
slm.mcmc <- SEMCMC(m.form, data = columbus, W = W, model = "slm")
impacts(slm.mcmc, W)

becarioprecario/SEMCMC documentation built on Feb. 25, 2021, 4:03 p.m.