Skip to content
logo
neighbayes
neighbayes.dgp.simulate_slx
Initializing search
    pysal/neighbayes
    pysal/neighbayes
    • Home
    • Installation
      • Getting Started with neighbayes
      • Bayesian spatial models: a walkthrough
      • Spatial panel models: a walkthrough
      • How to set priors
      • How to choose and configure the Gibbs sampler
      • How to fit spatial logit models
      • How to estimate spatial negative binomial models
      • How to fit zero-inflated SAR negative binomial models
      • How to estimate Poisson origin–destination flow models
      • How to fit spatial tobit models
      • How to fit spatial tobit panel models
      • How to estimate origin–destination flow models
      • How to estimate panel flow models
      • How to run Bayesian LM specification tests
      • How to run spatial block cross-validation
      • Why neighbayes
      • Architecture
      • Supported Models
      • API reference
        • Cross-Sectional Spatial Models
        • Panel Spatial Models (Fixed Effects)
        • Panel Spatial Models (Random Effects)
        • Dynamic Panel Spatial Models
        • Non-Linear Spatial Models
        • Panel Spatial Models (Tobit)
        • Flow Models
        • Default Gibbs Priors
        • Default NUTS Priors
        • Bayesian Diagnostics
        • Data Generating Processes
          • neighbayes.dgp.simulate_ols
          • neighbayes.dgp.simulate_sar
          • neighbayes.dgp.simulate_sem
          • neighbayes.dgp.simulate_slx
            • F neighbayes.dgp.simulate_slx
              • Returns
              • Return type
          • neighbayes.dgp.simulate_sdm
          • neighbayes.dgp.simulate_sdem
          • neighbayes.dgp.simulate_sar_negbin
          • neighbayes.dgp.simulate_sar_zinb
          • neighbayes.dgp.simulate_spatial_probit
          • neighbayes.dgp.simulate_sar_tobit
          • neighbayes.dgp.simulate_sem_tobit
          • neighbayes.dgp.simulate_sdm_tobit
          • neighbayes.dgp.simulate_panel_ols_fe
          • neighbayes.dgp.simulate_panel_sar_fe
          • neighbayes.dgp.simulate_panel_sem_fe
          • neighbayes.dgp.simulate_panel_sdm_fe
          • neighbayes.dgp.simulate_panel_sdem_fe
          • neighbayes.dgp.simulate_panel_slx_fe
          • neighbayes.dgp.simulate_panel_ols_re
          • neighbayes.dgp.simulate_panel_sar_re
          • neighbayes.dgp.simulate_panel_sem_re
          • neighbayes.dgp.simulate_panel_dlm_fe
          • neighbayes.dgp.simulate_panel_sdmr_fe
          • neighbayes.dgp.simulate_panel_sdmu_fe
          • neighbayes.dgp.simulate_panel_sar_dynamic_fe
          • neighbayes.dgp.simulate_panel_sem_dynamic_fe
          • neighbayes.dgp.simulate_panel_sdem_dynamic_fe
          • neighbayes.dgp.simulate_panel_slx_dynamic_fe
          • neighbayes.dgp.simulate_panel_sar_tobit_fe
          • neighbayes.dgp.simulate_panel_sem_tobit_fe
          • Flow Data Generating Processes
        • Graph Utilities
      • References
      • External Validation & Replication
      • Performance & Profiling
      • GitHub
      • Changelog
    • F neighbayes.dgp.simulate_slx
      • Returns
      • Return type

    neighbayes.dgp.simulate_slx¶

    neighbayes.dgp.simulate_slx(n=None, W=None, gdf=None, beta1=None, beta2=None, sigma=1.0, err_hetero=False, rng=None, seed=None, contiguity='queen', create_gdf=False, geometry_type='polygon')[source]¶

    Simulate data from SLX DGP y = X beta1 + W X_no_intercept beta2 + eps.

    Returns:¶

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

    Return type:¶

    dict

    © Copyright 2018-, pysal developers.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial