piston-assembly-study / analysis /error_model_report.txt
leoventu's picture
Add verified assembly assistance release artifacts
18688f5 verified
Raw History Blame Contribute Delete
4.04 kB
Failed-Stage Analysis
=====================
Trials: 70
Subjects: 8
Conditions: {'no': 27, 'mid': 22, 'full': 21}
The Poisson analysis is a GLM with participant-clustered robust standard errors, not a Poisson GLMM. A Poisson GLMM is not fitted here. With eight participant clusters, cluster-robust inference is approximate and should be interpreted cautiously.
Poisson GLM with participant-clustered robust SE:
Generalized Linear Model Regression Results
==============================================================================
Dep. Variable: y No. Observations: 70
Model: GLM Df Residuals: 65
Model Family: Poisson Df Model: 4
Link Function: Log Scale: 1.0000
Method: IRLS Log-Likelihood: -54.861
Date: Thu, 19 Nov 2026 Deviance: 60.275
Time: 13:04:32 Pearson chi2: 63.8
No. Iterations: 5 Pseudo R-squ. (CS): 0.1145
Covariance Type: cluster
==============================================================================
coef std err z P>|z| [0.025 0.975]
------------------------------------------------------------------------------
const -0.3338 0.924 -0.361 0.718 -2.145 1.478
cond_mid -0.2251 0.247 -0.910 0.363 -0.710 0.260
cond_no -0.7153 0.502 -1.425 0.154 -1.699 0.268
log_global 0.6077 0.364 1.670 0.095 -0.105 1.321
num_stages -0.1208 0.085 -1.429 0.153 -0.287 0.045
==============================================================================
Pearson dispersion: 0.982.
NB2 negative-binomial regression sensitivity with participant-clustered robust SE (not a mixed model):
Optimizer convergence flag: True
Warnings: Inverting hessian failed, no bse or cov_params available
NegativeBinomial Regression Results
==============================================================================
Dep. Variable: y No. Observations: 70
Model: NegativeBinomial Df Residuals: 65
Method: MLE Df Model: 4
Date: Thu, 19 Nov 2026 Pseudo R-squ.: 0.07077
Time: 13:04:32 Log-Likelihood: -54.861
converged: True LL-Null: -59.039
Covariance Type: cluster LLR p-value: 0.07935
==============================================================================
coef std err z P>|z| [0.025 0.975]
------------------------------------------------------------------------------
const -0.3342 0.934 -0.358 0.720 -2.164 1.496
cond_mid -0.2252 0.249 -0.903 0.367 -0.714 0.264
cond_no -0.7152 0.506 -1.414 0.157 -1.706 0.276
log_global 0.6078 0.367 1.658 0.097 -0.111 1.326
num_stages -0.1208 0.086 -1.412 0.158 -0.288 0.047
alpha 5.843e-06 0.010 0.001 1.000 -0.019 0.019
==============================================================================
NB2 allows overdispersion relative to Poisson. Both models use the same trial-level predictors. With eight clusters, robust standard errors remain small-sample sensitive. If convergence is false or Hessian/standard-error warnings occur, treat NB2 as an unsuccessful sensitivity fit rather than supporting evidence.