bayespecon.dgp.simulate_sem

bayespecon.dgp.simulate_sem(n=None, W=None, gdf=None, lam=0.5, beta=None, sigma=1.0, err_hetero=False, rng=None, seed=None, contiguity='queen', create_gdf=False, geometry_type='polygon')[source]

Simulate data from SEM DGP y = X beta + (I-lam W)^(-1) eps.

Parameters are analogous to simulate_sar() with lam replacing rho.

Returns:

Keys: y, X, W_dense, W_graph, params_true.

Return type:

dict

Notes

Equivalent to simulate_sdem with beta2=[] (no WX terms); see simulate_sdem() for the unified Spatial Durbin Error form.