bayespecon.dgp.generate_negbin_flow_data¶
-
bayespecon.dgp.generate_negbin_flow_data(n=
None, k=2, k_d=None, k_o=None, rho_d=0.3, rho_o=0.2, rho_w=0.1, beta_d=None, beta_o=None, alpha=2.0, gamma_dist=-0.5, seed=42, G=None, err_hetero=False, gdf=None, knn_k=4)[source]¶ Generate synthetic O-D flow counts from an NB2 SAR flow DGP.
Mirrors
generate_poisson_flow_data()but samples counts from \(\mathrm{NegBin}(\mu, \alpha)\) where \(\mathrm{Var}(y)=\mu+\mu^2/\alpha\).