bayespecon.dgp.simulate_panel_sdmu_fe¶
-
bayespecon.dgp.simulate_panel_sdmu_fe(N, T, rho=
0.3, phi=0.4, theta=-0.1, beta=None, sigma=1.0, sigma_alpha=0.5, err_hetero=False, rng=None, seed=None, W=None, gdf=None, contiguity='queen', create_gdf=False, geometry_type='polygon', wide=False)[source]¶ Simulate dynamic unrestricted SDM panel FE data.
DGP¶
y_t = rho W y_t + phi y_{t-1} + theta W y_{t-1} + X_t beta + alpha + eps_t.- param N:
Number of units and time periods.
- type N:
int
- param T:
Number of units and time periods.
- type T:
int
- param rho:
Spatial lag coefficient.
- type rho:
float, default=0.3
- param phi:
Temporal lag coefficient.
- type phi:
float, default=0.4
- param theta:
Spatial lag coefficient on lagged dependent variable.
- type theta:
float, default=-0.1
- param beta:
Coefficients including intercept.
- type beta:
np.ndarray, optional
- param sigma:
Idiosyncratic noise scale.
- type sigma:
float, default=1.0
- param sigma_alpha:
Unit effect scale.
- type sigma_alpha:
float, default=0.5
- param err_hetero:
If True, generate heteroskedastic innovations with observation-specific standard deviations \(\sigma_i = \sigma \sqrt{1 + \|x_{it}\|^2}\) per period.
- type err_hetero:
bool, default=False
- param rng:
Random state controls.
- param seed:
Random state controls.
- param W:
Spatial structure input and GeoDataFrame neighbor rule.
- param gdf:
Spatial structure input and GeoDataFrame neighbor rule.
- param contiguity:
Spatial structure input and GeoDataFrame neighbor rule.
- returns:
Includes time-first stacked arrays and panel index columns.
- rtype:
dict