{% extends 'common/base_v2.html' %} {% block summary %}

GMM Estimation Summary

Observations
{{ nobs|default('—') }}
Groups
{{ n_groups|default('—') }}
Instruments
{{ n_instruments|default('—') }}
Hansen J p-value
{% if diagnostics and diagnostics.hansen %}
{{ diagnostics.hansen.pvalue|pvalue_format }}
{% else %}
{% endif %}
{% if summary %} {% if summary.overall_status == 'good' %}
Specification tests passed.

Hansen J-test and AR(2) test do not reject at the 5% level.

{% else %}
Review specification tests.

One or more diagnostic tests indicate potential issues.

{% endif %} {% endif %}
{% endblock %} {% block content %}
{% if charts %} {% endif %}

Parameter Estimates

{% if coefficients %} {% for coef in coefficients %} {% endfor %}
Variable Coefficient Std. Error t-stat p-value
{{ coef.name }} {{ coef.coef|round(4) }} {{ coef.se|round(4) }} {{ coef.tstat|round(3) }} {{ coef.pvalue|pvalue_format }} {{ coef.stars }}

Significance: * p<0.1, ** p<0.05, *** p<0.01

{% else %}

No coefficient data available.

{% endif %}

Specification Tests

{% if diagnostics %}
Test Statistic p-value Status Interpretation
Hansen J-test {{ diagnostics.hansen.statistic }} {{ diagnostics.hansen.pvalue|pvalue_format }} {% if diagnostics.hansen.status == 'pass' %} PASS {% else %} FAIL {% endif %} {% if diagnostics.hansen.status == 'pass' %}Instruments valid (not rejected){% else %}Instruments may be invalid{% endif %}
AR(1) test {{ diagnostics.ar1.statistic }} {{ diagnostics.ar1.pvalue|pvalue_format }} Expected First-order autocorrelation expected in differences
AR(2) test {{ diagnostics.ar2.statistic }} {{ diagnostics.ar2.pvalue|pvalue_format }} {% if diagnostics.ar2.status == 'pass' %} PASS {% else %} FAIL {% endif %} {% if diagnostics.ar2.status == 'pass' %}No second-order autocorrelation{% else %}Second-order autocorrelation detected{% endif %}
{% else %}

No diagnostic data available.

{% endif %}

Instrument Information

Number of instruments {{ n_instruments|default('—') }}
Number of groups {{ n_groups|default('—') }}
Instrument/group ratio {{ model_info.instrument_ratio|default('—') if model_info else '—' }}
Estimation method {{ model_info.estimator|default(model_type)|default('GMM') if model_info else model_type|default('GMM') }}
Two-step {{ 'Yes' if (model_info and model_info.two_step) or two_step else 'No' }}
{% if n_instruments is defined and n_groups is defined and n_instruments > n_groups %}
Warning: Instrument proliferation.

The number of instruments ({{ n_instruments }}) exceeds the number of groups ({{ n_groups }}). Consider using collapse=True to reduce the instrument count.

{% endif %}
{% if charts %}
{% if charts.coefficient_plot %}

Coefficient Estimates

{{ charts.coefficient_plot|safe }}
{% endif %} {% if charts.diagnostic_chart %}

Specification Tests

{{ charts.diagnostic_chart|safe }}
{% endif %} {% if charts.instrument_chart %}

Instrument Summary

{{ charts.instrument_chart|safe }}
{% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}