prior_sensitivity
validation.prior_sensitivity(
Yc_obs,
spatial_W,
spatial_w,
alpha,
grid,
*,
X=None,
p=0,
m_burn=5000,
m_keep=20000,
thin=1,
base_seed=1000,
kernel='simple',
)
Re-run the Step-2 posterior across a grid of prior settings.
Parameters
| Yc_obs |
as in :func:run_posterior_mcmc |
|
required |
| spatial_W |
as in :func:run_posterior_mcmc |
|
required |
| spatial_w |
as in :func:run_posterior_mcmc |
|
required |
| alpha |
as in :func:run_posterior_mcmc |
|
required |
| X |
as in :func:run_posterior_mcmc |
|
required |
| p |
as in :func:run_posterior_mcmc |
|
required |
| grid |
pd.DataFrame |
One row per setting with columns a0, b0, rho_lo, rho_hi, step_rho (the replication package’s grid layout). |
required |
| m_burn |
int |
MCMC budget shared by every row. |
5000 |
| m_keep |
int |
MCMC budget shared by every row. |
5000 |
| thin |
int |
MCMC budget shared by every row. |
5000 |
| base_seed |
int |
Row i uses seed base_seed + i. |
1000 |
| kernel |
('simple', 'production') |
|
"simple" |