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

Maximum Likelihood Estimation

Log-Likelihood
{{ loglikelihood|default((fit_statistics|default({})).get('loglikelihood', '—'))|round(2) }}
AIC
{{ aic|default((fit_statistics|default({})).get('aic', '—'))|round(2) }}
BIC
{{ bic|default((fit_statistics|default({})).get('bic', '—'))|round(2) }}
Pseudo R²
{{ pseudo_r_squared|default((fit_statistics|default({})).get('pseudo_r_squared', '—'))|round(4) }}
{% if converged is defined %}
{% if converged %}Optimization converged{% else %}Warning: Optimization did not converge{% endif %} {% if n_iter is defined %}

Completed in {{ n_iter }} iterations.

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

Parameter Estimates

{% if coefficients %} {% if coefficients[0].ci_lower is defined and coefficients[0].ci_lower != '' %} {% endif %} {% for coef in coefficients %} {% if coef.ci_lower is defined and coef.ci_lower != '' %} {% endif %} {% endfor %}
Parameter Coefficient Std. Error z-stat P>|z| [0.025 0.975]
{{ coef.name }} {{ coef.coef|round(4) }} {{ coef.se|round(4) }} {{ coef.zstat|round(3) }} {{ coef.pvalue|pvalue_format }} {{ coef.stars }}{{ coef.ci_lower|round(4) }} {{ coef.ci_upper|round(4) }}

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

{% else %}

No coefficient data available.

{% endif %}

Model Fit

{% if n_iter is defined %} {% endif %} {% if se_type is defined %} {% endif %}
Model type{{ model_type|default(model_info.model_type if model_info else '—') }}
Observations{{ nobs|default('—')|number_format }}
Entities{{ n_entities|default('—')|number_format }}
Log-Likelihood{{ loglikelihood|default((fit_statistics|default({})).get('loglikelihood', '—'))|round(4) }}
AIC{{ aic|default((fit_statistics|default({})).get('aic', '—'))|round(2) }}
BIC{{ bic|default((fit_statistics|default({})).get('bic', '—'))|round(2) }}
Pseudo R²{{ pseudo_r_squared|default((fit_statistics|default({})).get('pseudo_r_squared', '—'))|round(4) }}
Converged{{ 'Yes' if converged else 'No' }}
Iterations{{ n_iter }}
Standard errors{{ se_type }}
{% if classification %}

Classification Metrics

Accuracy
{{ classification.accuracy|percentage }}
Precision
{{ classification.precision|percentage }}
Recall
{{ classification.recall|percentage }}
F1-Score
{{ classification.f1_score|round(4) }}
{% endif %} {% if charts %}
{% if charts.coefficient_plot %}

Coefficient Estimates

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

Information Criteria

{{ charts.ic_chart|safe }}
{% endif %} {% if charts.classification_chart %}

Classification Metrics

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