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 a spatial logit model
      • 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
      • How to predict at new locations
      • Why neighbayes
      • Architecture
      • Supported Models
      • API reference
        • Models
        • Default Gibbs Priors
        • Default NUTS Priors
        • Bayesian Diagnostics
        • Data Generating Processes
          • neighbayes.dgp.simulate_ols
          • neighbayes.dgp.simulate_slx
            • F neighbayes.dgp.simulate_slx
              • Returns
              • Return type
          • neighbayes.dgp.simulate_sar
          • neighbayes.dgp.simulate_sem
          • neighbayes.dgp.simulate_sdm
          • neighbayes.dgp.simulate_sdem
          • neighbayes.dgp.simulate_sar_tobit
          • neighbayes.dgp.simulate_sem_tobit
          • neighbayes.dgp.simulate_sdm_tobit
          • neighbayes.dgp.simulate_logit
          • neighbayes.dgp.simulate_sar_logit
          • neighbayes.dgp.simulate_sem_logit
          • neighbayes.dgp.simulate_sdem_logit
          • neighbayes.dgp.simulate_probit
          • neighbayes.dgp.simulate_sar_probit
          • neighbayes.dgp.simulate_sem_probit
          • neighbayes.dgp.simulate_sdem_probit
          • neighbayes.dgp.simulate_negbin
          • neighbayes.dgp.simulate_sar_negbin
          • neighbayes.dgp.simulate_sem_negbin
          • neighbayes.dgp.simulate_sdem_negbin
          • neighbayes.dgp.simulate_zinb
          • neighbayes.dgp.simulate_sar_zinb
          • neighbayes.dgp.simulate_hurdle_negbin
          • neighbayes.dgp.simulate_sar_hurdle_negbin
          • neighbayes.dgp.simulate_multilevel
          • Flow Data Generating Processes
        • Graph Utilities
        • Runtime Configuration
      • 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_side=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', *, T=None, N=None, unit_effects=None, time_effects=False, dynamic=False, unit_effect_sd=None, time_effect_sd=None)[source]¶

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

    Returns:¶

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

    Return type:¶

    dict

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