Repository Analysis

statsmodels/statsmodels

Statsmodels: statistical modeling and econometrics in Python

12.8 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of statsmodels/statsmodels, a Python project with 11,597 GitHub stars. SynthScan v2.0 examined 533,917 lines of code across 1569 source files, recording 4882 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 12.8 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

12.8
Adjusted Score
12.8
Raw Score
100%
Time Factor
2026-08-27
Last Push
11.6K
Stars
Python
Language
533.9K
Lines of Code
1.6K
Files
4.9K
Pattern Hits
2026-08-29
Scan Date
0.21
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 2HIGH 321MEDIUM 517LOW 4042

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 4882 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers1677 hits · 1625 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py656 def get_returns_not_on_nested_functions(node):CODE
LOWtools/validate_docstrings.py692 def mentioned_private_classes(self):CODE
LOWarchive/tests/test_predict_functional.py115 def test_glm_formula_contrast(self, close_figures):CODE
LOWarchive/tests/test_predict_functional.py296 def test_noformula_prediction(self, close_figures):CODE
LOWarchive/distributions/tests/test_gof_new.py7def test_loop_vectorized_batch_equivalence():CODE
LOWarchive/stats/stats_mstats_short.py332def edf_normal_inverse_transformed(x, alpha=3.0 / 8, beta=3.0 / 8, axis=0):CODE
LOWexamples/python/lowess.py67def lowess_with_confidence_bounds(CODE
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py493def plot_coefficients_by_equation(states):CODE
LOWstatsmodels/conftest.py169def pytest_collection_modifyitems(config, items):CODE
LOWstatsmodels/conftest.py206def check_global_randomstate_usage(request):CODE
LOWstatsmodels/robust/tools.py567def _convert_to_dict_mvmean_effs(eff_mean=True):CODE
LOWstatsmodels/robust/covariance.py70def _naive_ledoit_wolf_shrinkage(x, center):STRING
LOWstatsmodels/robust/covariance.py96def coef_normalize_cov_truncated(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py137def _coef_normalize_cov_truncated_(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py896def cov_tyler_pairs_regularized(CODE
LOWstatsmodels/robust/robust_linear_model.py320 >>> def avg_abs_deviation_with_model(model, resid):CODE
LOWstatsmodels/robust/tests/test_rlm.py329def test_rlm_start_values_errors():CODE
LOWstatsmodels/robust/tests/test_rlm.py342def test_rlm_scale_est_callback_receives_model():CODE
LOWstatsmodels/robust/tests/test_rlm.py363def test_rlm_scale_est_one_and_two_inputs():CODE
LOWstatsmodels/robust/tests/test_rlm.py383def test_rlm_scale_est_resid_callable_df_correction():CODE
LOWstatsmodels/robust/tests/test_rlm.py471def test_summary_after_remove_data():CODE
LOWstatsmodels/robust/tests/test_rlm.py501def test_fit_invalid_options_raise():CODE
LOWstatsmodels/robust/tests/test_rlm.py525def test_rlm_results_direct_construction_validates_cov():CODE
LOWstatsmodels/robust/tests/test_scale.py444def test_scale_trimmed_approx():CODE
LOWstatsmodels/robust/tests/test_scale.py479def test_scale_trimmed_distarge():CODE
LOWstatsmodels/robust/tests/test_covariance.py329def test_cov_tyler_regularized_n_iter():CODE
LOWstatsmodels/robust/tests/test_covariance.py339def test_cov_tyler_regularized_corr_uses_scale():CODE
LOWstatsmodels/robust/tests/test_covariance.py424def test_cov_iter_invalid_rescale_raises():CODE
LOWstatsmodels/robust/tests/test_covariance.py433def test_get_detcov_startidx_invalid_methods_cov_raises():CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py89 def test_fit_moment_condition_and_start_results(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py103 def test_fit_beats_ols_under_contamination(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py123 def test_univariate_quantile_start(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py138 def test_include_endog_and_col_indices(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py168 def test_fit_beats_ols_under_contamination(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py180 def test_efficiency_close_to_ols_on_clean_data(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py202 def test_start_tuple_skips_s_stage(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py214 def test_breakdown_point_passthrough(self, breakdown_point):CODE
LOWstatsmodels/nonparametric/kernels_asymmetric.py653def kernel_pdf_recipinvgauss_(x, sample, bw):STRING
LOWstatsmodels/nonparametric/kernels.py204def aitchison_aitken_convolution(h, Xi, Xj):STRING
LOWstatsmodels/nonparametric/tests/test_kde.py56 def test_check_is_fit_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py60 def test_non_weighted_fft_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py70 def test_wrong_weight_length_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py80 def test_non_gaussian_fft_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py381 def test_norm_constant_calculation(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py428 def test_check_is_fit_ok_with_custom_bandwidth(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py435 def test_check_is_fit_ok_with_standard_custom_bandwidth(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py447 def test_check_is_fit_ok_with_float_bandwidth(self, fft):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py460def test_entropy_finite_domain_kernel(kernel):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py470def test_entropy_infinite_domain_kernel():CODE
LOWstatsmodels/nonparametric/tests/test_kde.py477def test_kdensity_result_object_default(func):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py495def test_kdensity_result_object_true(func):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py287 def test_continuousdata_lc_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py312 def test_continuousdata_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py336 def test_continuous_mfx_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py387 def test_mfx_nonlinear_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py417 def test_continuous_cvls_efficient(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py486 def test_significance_continuous(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py513 def test_significance_seed_legacy(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py600 def test_significance_seed_thread_safe(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py632 def test_significance_discrete(self):CODE
1617 more matches not shown…
Cross-Language Confusion199 hits · 911 pts
SeverityFileLineSnippetContext
HIGHstatsmodels/tools/grouputils.py795 if not test.index.equals(test_sorted.index):CODE
HIGHstatsmodels/tools/tests/test_grouputils.py56 assert not index.equals(self.grouping.index)CODE
HIGHstatsmodels/tools/tests/test_grouputils.py60 assert not sorted_data.equals(self.data)CODE
HIGHstatsmodels/tools/tests/test_grouputils.py75 assert not sorted_data.equals(series)CODE
HIGHstatsmodels/datasets/utils.py159 if data.index.equals(Index(lrange(1, len(data) + 1))):CODE
HIGHstatsmodels/imputation/mice.py329 ix_obs = np.flatnonzero(~null)CODE
HIGHstatsmodels/imputation/mice.py330 ix_miss = np.flatnonzero(null)CODE
HIGHstatsmodels/genmod/generalized_linear_model.py2062 self._endog, self.null, self._var_weights, self._freq_weightsSTRING
HIGHstatsmodels/genmod/generalized_linear_model.py2072 self.null,STRING
HIGHstatsmodels/genmod/tests/test_glm.py1045 assert_allclose(mod1.null, mod2.null, rtol=1e-10)STRING
HIGHstatsmodels/tsa/statespace/tools.py376 if s.columns.equals(pd.Index([None])):STRING
HIGHstatsmodels/tsa/statespace/tools.py382 if axis == 0 and not base_columns.equals(s_columns):STRING
HIGHstatsmodels/tsa/statespace/tools.py385 elif axis == 1 and not series[0].index.equals(s.index):STRING
HIGHstatsmodels/tsa/statespace/dynamic_factor_mq.py1360 endog_mean.index.equals(pd.Index(endog_names))):STRING
HIGHstatsmodels/tsa/statespace/dynamic_factor_mq.py1367 endog_std.index.equals(pd.Index(endog_names))):STRING
HIGHstatsmodels/tsa/statespace/mlemodel.py73 if given_index is not None and not desired_index.equals(given_index):CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1905 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1915 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1916 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1957 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1967 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1968 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2019 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2020 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2093 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2100 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1889 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1931 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py1989 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2005 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2042 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2059 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2073 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_simulate.py2074 assert_(actual.columns.equals(desired.columns))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py860 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py873 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py885 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py898 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py913 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_impulse_responses.py918 assert_(actual.index.equals(desired.index))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2967 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2975 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2985 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2997 assert_(mod._index.equals(pd.RangeIndex(start=0, stop=len(values) - 1)))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2998 assert_(mod.data.row_labels.equals(index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2278 assert_equal(out.index.equals(pd.Index(["a"])), True)CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1602 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1609 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1616 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1691 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1692 assert_(actual.columns.equals(desired.columns))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1707 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1725 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1726 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_varmax.py976 assert out.index.equals(pd.Index(["a"]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1309 assert states.predicted.index.equals(predicted_ix)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1310 assert states.predicted.columns.equals(cols)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1312 assert states.predicted_cov.index.equals(predicted_cov_ix)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1313 assert states.predicted.columns.equals(cols)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1316 assert states.filtered.index.equals(ix)CODE
139 more matches not shown…
Unused Imports903 hits · 756 pts
SeverityFileLineSnippetContext
LOWtools/check_public_api_coverage.py46CODE
LOWtools/class_coverage_report.py46CODE
LOWarchive/examples/ex_wald_anova.py10CODE
LOWarchive/examples/ex_generic_mle_tdist.py17CODE
LOWarchive/examples/tests/test_notebooks.py8CODE
LOWarchive/examples/tests/test_notebooks.py28CODE
LOWarchive/examples/tests/test_notebooks.py35CODE
LOWarchive/examples/tests/test_notebooks.py42CODE
LOWarchive/examples/tests/test_notebooks.py49CODE
LOWarchive/examples/thirdparty/ex_ratereturn.py95CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py3CODE
LOWarchive/stats/diagnostic.py23CODE
LOWdocs/source/conf.py60CODE
LOWstatsmodels/__init__.py1CODE
LOWstatsmodels/api.py79CODE
LOWstatsmodels/api.py79CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py84CODE
LOWstatsmodels/api.py85CODE
LOWstatsmodels/api.py86CODE
LOWstatsmodels/api.py86CODE
LOWstatsmodels/api.py86CODE
LOWstatsmodels/api.py91CODE
LOWstatsmodels/api.py91CODE
LOWstatsmodels/api.py91CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py96CODE
LOWstatsmodels/api.py105CODE
LOWstatsmodels/api.py105CODE
LOWstatsmodels/api.py105CODE
LOWstatsmodels/api.py110CODE
LOWstatsmodels/api.py111CODE
LOWstatsmodels/api.py112CODE
LOWstatsmodels/api.py113CODE
843 more matches not shown…
Over-Commented Block655 hits · 621 pts
SeverityFileLineSnippetContext
LOWpyproject.toml201 # flake8-logging-formatCOMMENT
LOWpyproject.toml221 # flake8-django (no Django usage, currently clean)COMMENT
LOWpyproject.toml281 # Counts below are from `ruff check . --select ALL`COMMENT
LOWpyproject.toml321 # mutable-class-defaultCOMMENT
LOWtools/R2nparray/R/R2nparray-package.R1#' R2nparrayCOMMENT
LOWtools/R2nparray/R/R2nparray.R1#' Print R object contents to python expressionCOMMENT
LOWtools/R2nparray/R/R2nparray.R161 }COMMENT
LOWtools/R2nparray/R/R2nparray.R201#SUR <- systemfit(inv ~ value + capital, method='SUR',data=panel)COMMENT
LOWtools/R2nparray/R/R2nparray.R221#equations = SUR[["eq"]]COMMENT
LOWarchive/infotheo.py21# Biometrika 40:237-264.COMMENT
LOWarchive/descstats.py141 "{range:>20}".format(**kwargs)COMMENT
LOWarchive/descstats.py161# dts=s2d.string2dummy(dta)COMMENT
LOWarchive/descstats.py181 data = sm.datasets.longley.load()COMMENT
LOWarchive/nonparametric/kde2.py101 [kde.density(np.matrix([xi, yi])) for xi, yi in zip(xr.ravel(), yr.ravel(), strict=True)]COMMENT
LOWarchive/panel/mixed.py641COMMENT
LOWarchive/panel/panelmod.py121 # raise ValueError("If pandel_data is False then endog, exog, \COMMENT
LOWarchive/panel/panelmod.py161 self.paneluniq = np.unique(panel)COMMENT
LOWarchive/panel/panelmod.py181 # TODO: can the above be simplified to slice notation?COMMENT
LOWarchive/panel/panelmod.py281 return self._fit_fixed(method, effects)COMMENT
LOWarchive/panel/panelmod.py381 panel_fe2 = panel_mod.fit(model="fixed", effects="twoways")COMMENT
LOWarchive/examples/ex_misc_tmodel.py81# print pp.min(0)COMMENT
LOWarchive/examples/ex_onewaygls.py21# '2-2': 4 groups,COMMENT
LOWarchive/examples/ex_kernel_regression_sigtest.py101# ax.plot(x, y, 'o', alpha=0.5)COMMENT
LOWarchive/examples/ex_generic_mle_tdist.py421# 0.0164150896481COMMENT
LOWarchive/examples/ex_generic_mle_tdist.py441# Current function value: -679.950443COMMENT
LOWarchive/examples/ex_generic_mle_tdist.py461#COMMENT
LOWarchive/examples/ex_generic_mle_tdist.py481# >>> y.min()COMMENT
LOWarchive/examples/ex_generic_mle_tdist.py501# -4.4908502522786327COMMENT
LOWarchive/examples/example_pca_regression.py41print("OLS on original data")COMMENT
LOWarchive/examples/example_gam_0.py161COMMENT
LOWarchive/examples/ex_cusum.py21example = ["null", "smalldiff", "mediumdiff", "largediff"][1]COMMENT
LOWarchive/examples/ex_cusum.py101COMMENT
LOWarchive/examples/example_sysreg.py61print(grun_ires.params)COMMENT
LOWarchive/examples/example_sysreg.py221 print("We get the right estimate")COMMENT
LOWarchive/examples/bayesprior.py201# NOTE: but it matches the language? I think mine is right!COMMENT
LOWarchive/examples/bayesprior.py221# p_iCOMMENT
LOWarchive/examples/bayesprior.py241 psigma2 = pymc.rinverse_gamma(1.0, 4.0, size=1e6)COMMENT
LOWarchive/tsa/try_var_convolve.py161 ar1[i] = 0.8 * ar1[i - 1] + rvs[i - 1]COMMENT
LOWarchive/tsa/examples/example_var.py41COMMENT
LOWarchive/regression/runmnl.py161 # if self.endog where index then xb[self.endog]COMMENT
LOWarchive/distributions/transform_functions.py161#COMMENT
LOWdocs/source/conf.py1#COMMENT
LOWdocs/source/conf.py141# documents.COMMENT
LOWdocs/source/conf.py241# html_title = NoneCOMMENT
LOWdocs/source/conf.py281# If false, no module index is generated.COMMENT
LOWdocs/source/conf.py301# base URL from which the finished HTML is served.COMMENT
LOWdocs/source/conf.py381 "Jonathan Taylor, statsmodels-developers"COMMENT
LOWdocs/source/conf.py401COMMENT
LOWexamples/python/statespace_local_linear_trend.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/statespace_local_linear_trend.py21# Chapter 3.2 for all notation and details):COMMENT
LOWexamples/python/statespace_local_linear_trend.py41# \end{align}COMMENT
LOWexamples/python/statespace_local_linear_trend.py61import statsmodels.api as smCOMMENT
LOWexamples/python/statespace_local_linear_trend.py81# the observation and state covariance matrices. More generally, theCOMMENT
LOWexamples/python/statespace_local_linear_trend.py101# initial distribution of the state vector. If the distribution is known,COMMENT
LOWexamples/python/stl_decomposition.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/lowess.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/formulas.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/formulas.py61# ``patsy`` formula. ``data`` takes a [pandas](https://pandas.pydata.org/)COMMENT
LOWexamples/python/formulas.py101# explicitly as categorical, we could have done so by using the ``C()``COMMENT
LOWexamples/python/tsa_arma_1.py1#!/usr/bin/env pythonCOMMENT
595 more matches not shown…
Decorative Section Separators190 hits · 573 pts
SeverityFileLineSnippetContext
MEDIUMtools/check_public_api_coverage.py63# --------------------------------------------------------------------------COMMENT
MEDIUMtools/check_public_api_coverage.py65# --------------------------------------------------------------------------COMMENT
MEDIUMtools/check_public_api_coverage.py236# --------------------------------------------------------------------------COMMENT
MEDIUMtools/check_public_api_coverage.py238# --------------------------------------------------------------------------COMMENT
MEDIUMtools/check_public_api_coverage.py337# --------------------------------------------------------------------------COMMENT
MEDIUMtools/check_public_api_coverage.py339# --------------------------------------------------------------------------COMMENT
MEDIUMtools/R2nparray/R/R2nparray.R169 #----------COMMENT
MEDIUMarchive/descstats.py14# ============================================COMMENT
MEDIUMarchive/descstats.py16# ============================================COMMENT
MEDIUMarchive/tools/try_mctools.py52# ----------------------COMMENT
MEDIUMarchive/examples/ex_onewaygls.py16# --------------COMMENT
MEDIUMarchive/examples/ex_onewaygls.py25# ----------------COMMENT
MEDIUMarchive/examples/ex_onewaygls.py191# -----------------------STRING
MEDIUMarchive/examples/ex_regressionplots.py20# ---------------------------------------------COMMENT
MEDIUMarchive/examples/try_gmm_other.py67 # ----------------------------COMMENT
MEDIUMarchive/examples/try_gmm_other.py120 # -------------------------------------------------COMMENT
MEDIUMarchive/examples/ex_cusum.py20# --------------COMMENT
MEDIUMarchive/examples/ex_cusum.py28# ----------------COMMENT
MEDIUMarchive/examples/tut_ols_ancova.py46# -------------------------------------------COMMENT
MEDIUMarchive/regression/ols_anova_original.py319# -------------------STRING
MEDIUMarchive/regression/try_ols_anova.py201 # ------------------------------STRING
MEDIUMarchive/regression/try_ols_anova.py239 # -------------------STRING
MEDIUMarchive/regression/ar_panel.py137 # ------------COMMENT
MEDIUMarchive/regression/runmnl.py236# ------------------------------COMMENT
MEDIUMarchive/regression/runmnl.py309# ----------------------COMMENT
MEDIUMarchive/distributions/estimators.py451 # -----------------------------COMMENT
MEDIUMarchive/distributions/estimators.py490 # ---------------------------COMMENT
MEDIUMarchive/distributions/estimators.py522 # ------------------------COMMENT
MEDIUMarchive/distributions/estimators.py664 # ===================================================COMMENT
MEDIUMarchive/distributions/estimators.py667 # -------------------------------COMMENT
MEDIUMarchive/distributions/estimators.py690 # --------------------------------------------------------COMMENT
MEDIUMexamples/python/mixed_lm_example.py41# =======================================COMMENT
MEDIUMexamples/incomplete/wls_extended.py51# ----------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py84# ----------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py150# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py260# --------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py386# -----------------------------------------------------------------STRING
MEDIUMexamples/incomplete/dates.py10# ---------------COMMENT
MEDIUMexamples/incomplete/dates.py19# ------------COMMENT
MEDIUMexamples/incomplete/dates.py33# --------------------COMMENT
MEDIUMstatsmodels/robust/tests/test_rlm.py211# --------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tools/eval_measures.py389# ---------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py193 # ------------------------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py242 # -------------COMMENT
MEDIUMstatsmodels/iolib/summary.py247 # --------------COMMENT
MEDIUMstatsmodels/iolib/summary.py480 # ------------------------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py569 # ------------------------------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py101# -----------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py187# -----------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py858# ------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/tests/test_transf.py104# -----------------------------COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py498# ============================COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py502# ============================COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py18# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py26# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py28# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py85# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py87# ---------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/filters/tests/test_hamilton_filter.py180# ---------------------------------------------------------------------------COMMENT
130 more matches not shown…
Cross-File Repetition104 hits · 520 pts
SeverityFileLineSnippetContext
HIGHarchive/nonparametric/kernel_extras.py0multivariate conditional and unconditional kernel regression with mixed data types references ---------- [1] racine, j.,STRING
HIGHstatsmodels/nonparametric/kernel_density.py0multivariate conditional and unconditional kernel regression with mixed data types references ---------- [1] racine, j.,STRING
HIGHstatsmodels/nonparametric/kernel_regression.py0multivariate conditional and unconditional kernel regression with mixed data types references ---------- [1] racine, j.,STRING
HIGHarchive/examples/ex_mixed_lls_0.py0if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) >STRING
HIGHarchive/examples/ex_mixed_lls_timecorr.py0if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) >STRING
HIGHarchive/examples/ex_mixed_lls_re.py0if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) >STRING
HIGHarchive/examples/ex_kernel_semilinear_dgp.py0created on sun jan 06 09:50:54 2013 author: josef perktoldSTRING
HIGHarchive/examples/ex_kernel_singleindex_dgp.py0created on sun jan 06 09:50:54 2013 author: josef perktoldSTRING
HIGHarchive/examples/ex_kernel_regression_dgp.py0created on sun jan 06 09:50:54 2013 author: josef perktoldSTRING
HIGHarchive/examples/ex_generic_mle_tdist.py0maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model aSTRING
HIGHarchive/examples/ex_generic_mle_t.py0maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model aSTRING
HIGHstatsmodels/miscmodels/count.py0maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model aSTRING
HIGHarchive/distributions/transform_functions.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGHarchive/distributions/transformed.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGHstatsmodels/sandbox/distributions/extras.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGHstatsmodels/discrete/discrete_model.py0derivative of the expected endog with respect to the parameters. parameters ---------- params : ndarray parameter at whiSTRING
HIGHstatsmodels/discrete/count_model.py0derivative of the expected endog with respect to the parameters. parameters ---------- params : ndarray parameter at whiSTRING
HIGHstatsmodels/genmod/generalized_linear_model.py0derivative of the expected endog with respect to the parameters. parameters ---------- params : ndarray parameter at whiSTRING
HIGHstatsmodels/discrete/discrete_model.py0generic censored model hessian matrix of the log-likelihood. parameters ---------- params : array_like the parameters ofSTRING
HIGHstatsmodels/discrete/count_model.py0generic censored model hessian matrix of the log-likelihood. parameters ---------- params : array_like the parameters ofSTRING
HIGHstatsmodels/discrete/truncated_model.py0generic censored model hessian matrix of the log-likelihood. parameters ---------- params : array_like the parameters ofSTRING
HIGHstatsmodels/discrete/discrete_model.py0likelihood ratio chi-squared statistic; `-2*(llnull - llf)`STRING
HIGHstatsmodels/miscmodels/ordinal_model.py0likelihood ratio chi-squared statistic; `-2*(llnull - llf)`STRING
HIGHstatsmodels/base/model.py0likelihood ratio chi-squared statistic; `-2*(llnull - llf)`STRING
HIGHstatsmodels/discrete/discrete_model.py0the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribuSTRING
HIGHstatsmodels/miscmodels/ordinal_model.py0the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribuSTRING
HIGHstatsmodels/base/model.py0the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribuSTRING
HIGHstatsmodels/discrete/conditional_models.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/genmod/generalized_estimating_equations.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/genmod/qif.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/genmod/generalized_linear_model.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/duration/hazard_regression.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/base/model.py0summarize the regression results parameters ---------- yname : str, optional default is `y` xname : list of str, optionaSTRING
HIGHstatsmodels/datasets/template_data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/engel/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/cancer/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/fair/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/strikes/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/statecrime/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/heart/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/modechoice/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/scotland/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/spector/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/stackloss/data.py0load the stack loss data and returns a dataset class instance. returns ------- dataset a `dataset` instance with ``data`STRING
HIGHstatsmodels/datasets/committee/data.py0used with express permission from the original author, who retains all rights.STRING
HIGHstatsmodels/datasets/cpunish/data.py0used with express permission from the original author, who retains all rights.STRING
HIGHstatsmodels/datasets/copper/data.py0used with express permission from the original author, who retains all rights.STRING
HIGHstatsmodels/datasets/star98/data.py0used with express permission from the original author, who retains all rights.STRING
HIGHstatsmodels/datasets/scotland/data.py0used with express permission from the original author, who retains all rights.STRING
HIGHstatsmodels/datasets/committee/data.py0jeff gill's *generalized linear models: a unified approach* http://jgill.wustl.edu/research/books.htmlSTRING
HIGHstatsmodels/datasets/cpunish/data.py0jeff gill's *generalized linear models: a unified approach* http://jgill.wustl.edu/research/books.htmlSTRING
HIGHstatsmodels/datasets/copper/data.py0jeff gill's *generalized linear models: a unified approach* http://jgill.wustl.edu/research/books.htmlSTRING
HIGHstatsmodels/datasets/star98/data.py0jeff gill's *generalized linear models: a unified approach* http://jgill.wustl.edu/research/books.htmlSTRING
HIGHstatsmodels/datasets/scotland/data.py0jeff gill's *generalized linear models: a unified approach* http://jgill.wustl.edu/research/books.htmlSTRING
HIGHstatsmodels/datasets/committee/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
HIGHstatsmodels/datasets/cpunish/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
HIGHstatsmodels/datasets/anes96/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
HIGHstatsmodels/datasets/copper/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
HIGHstatsmodels/datasets/longley/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
HIGHstatsmodels/datasets/ccard/data.py0load the credit card data and returns a dataset class. returns ------- dataset a `dataset` instance with ``data``, ``namSTRING
44 more matches not shown…
AI Slop Vocabulary173 hits · 450 pts
SeverityFileLineSnippetContext
MEDIUMarchive/sysreg.py212 if X is self.endog: # definitely not a robust checkCODE
MEDIUMarchive/infotheo.py132# TODO: looks okay but needs more robust tests for corner casesCOMMENT
MEDIUMarchive/panel/sandwich_covariance_generic.py123 """simple white heteroscedasticity robust covarianceSTRING
MEDIUMarchive/examples/ex_sandwich3.py59# From the last line we see that the cluster and year robust standard errorsCOMMENT
MEDIUMarchive/examples/ex_sandwich2.py1"""Cluster robust standard errors for OLSSTRING
MEDIUMarchive/examples/ex_sandwich2.py54# get cluster robust standard errors and compare with STATACOMMENT
MEDIUMarchive/examples/ex_sandwich2.py118# We see that in this case the robust standard errors of the parameter estimatesCOMMENT
MEDIUMarchive/examples/example_kde.py30# get bw first because they're not streamlinedCOMMENT
MEDIUMarchive/examples/tut_ols_rlm_short.py49# compare with robust estimatorCOMMENT
MEDIUMarchive/examples/tut_ols_rlm_short.py61# module sm.robust.scale for scale optionsCOMMENT
MEDIUMarchive/examples/ex_random_panel.py70 # heteroscedasticity robust does not helpCOMMENT
MEDIUMarchive/examples/ex_random_panel.py72 # compare with cluster robust seCOMMENT
MEDIUMarchive/examples/bayesprior.py44 # TODO: is this robust for differential entropy in this case? closed form orCOMMENT
MEDIUMarchive/distributions/sppatch.py153 eps = 0 # is this robust ?CODE
MEDIUMarchive/distributions/sppatch.py443# based on _drv2_moment(self, n, *args), but streamlinedCOMMENT
MEDIUMexamples/python/stl_decomposition.py73# Setting `robust` uses a data-dependent weighting function that re-COMMENT
MEDIUMexamples/python/stl_decomposition.py75# robust estimation allows the model to tolerate larger errors that areCOMMENT
MEDIUMexamples/python/stl_decomposition.py87# Next, we estimate the model with and without robust weighting. TheCOMMENT
MEDIUMexamples/python/stl_decomposition.py89# 2008. The non-robust estimate places equal weights on all observations andCOMMENT
LOWexamples/python/formulas.py39# Alternatively, you can just use the `formula` namespace of the mainCOMMENT
MEDIUMexamples/python/treatment_effect.py117# The doubly robust estimators `aipw`, `aipw-wls`, `ipw-ra` include bothCOMMENT
MEDIUMexamples/python/treatment_effect.py160# `ipw` for example regression adjustment `ra` and double robust `ipw_ra`.COMMENT
LOWexamples/python/statespace_news.py128# just call the `forecast` method with the number of forecasts you want toCOMMENT
LOWexamples/python/statespace_news.py514# For the updated dataset, we'll just add in theCOMMENT
LOWexamples/python/statespace_news.py636# just call the `summary_details` method directly.COMMENT
MEDIUMexamples/python/gee_score_test_simulation.py16# This notebook uses simulation to demonstrate robust GEE score tests.COMMENT
MEDIUMexamples/python/gee_score_test_simulation.py18# about the mean structure. The tests are robust to miss-specification ofCOMMENT
MEDIUMexamples/python/gee_score_test_simulation.py92# The GEE score test is robust to dependence and overdispersion. Here weCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py362 # facilitate comparisonCOMMENT
MEDIUMexamples/python/robust_models_0.py62# See ``help(sm.RLM.fit)`` for more options and ``module sm.robust.scale``COMMENT
MEDIUMexamples/python/robust_models_0.py101# Draw a plot to compare OLS estimates to the robust estimates:COMMENT
MEDIUMexamples/python/robust_models_0.py138# Draw a plot to compare OLS estimates to the robust estimates:COMMENT
MEDIUMexamples/python/postestimation_poisson.py99# form which is robust to unspecified heteroscedasticity or serial orCOMMENT
MEDIUMexamples/python/postestimation_poisson.py133# correlation robust covariance type.COMMENT
MEDIUMexamples/python/postestimation_poisson.py134# It currently uses the same implementation and defaults for the robustCOMMENT
MEDIUMexamples/python/postestimation_poisson.py142# corrections for heteroscedasticity and correlation robust score tests.COMMENT
MEDIUMexamples/python/postestimation_poisson.py385# generalized leverage instead of the diagonal of the hat matrix in linearCOMMENT
MEDIUMexamples/python/linear_regression_diagnostics_plots.py55# d. leverageCOMMENT
MEDIUMexamples/python/linear_regression_diagnostics_plots.py472# A high leverage guideline can also be displayed using the convention:COMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py480# so we just pass an empty list)COMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py658# models. Here we'll just use the [arviz](https://arviz-COMMENT
MEDIUMexamples/python/robust_models_1.py33# * The robust estimates $\hat{\beta}$ are computed by the iteratively re-COMMENT
MEDIUMexamples/python/robust_models_1.py146# * The mean is not a robust estimator of locationCOMMENT
MEDIUMexamples/python/robust_models_1.py152# * The median, on the other hand, is a robust estimator with a breakdownCOMMENT
MEDIUMexamples/python/robust_models_1.py160# * The standard deviation is not robustCOMMENT
MEDIUMexamples/python/robust_models_1.py193# Another robust estimator of scale is the Interquartile Range (IQR)COMMENT
MEDIUMexamples/python/robust_models_1.py208# The IQR is less robust than the MAD in the sense that it has a lowerCOMMENT
MEDIUMexamples/python/robust_models_1.py214# Yet another robust estimator of scale is the $Q_n$ estimator, introducedCOMMENT
MEDIUMexamples/python/robust_models_1.py376# * Why? Because M-estimators are not robust to leverage points.COMMENT
MEDIUMexamples/python/robust_models_1.py376# * Why? Because M-estimators are not robust to leverage points.COMMENT
MEDIUMexamples/python/influence_glm_logit.py72# and large Cook's distance, but not a large leverage. Observation 13 hasCOMMENT
MEDIUMexamples/python/influence_glm_logit.py73# the largest leverage but only small Cook's distance and not a largeCOMMENT
MEDIUMexamples/python/mstl_decomposition.py35# (e.g., `robust`, `seasonal_deg`, etc.). See [STL docs](https://www.statsmoCOMMENT
MEDIUMexamples/python/regression_plots.py53# leverage of each observation as measured by the hat matrix.COMMENT
MEDIUMexamples/python/regression_plots.py80# and reporter have low leverage but a large residual. <br />COMMENT
MEDIUMexamples/python/regression_plots.py81# RR.engineer has small residual and large leverage. Conductor andCOMMENT
MEDIUMexamples/python/regression_plots.py82# minister have both high leverage and large residuals, and, <br />COMMENT
MEDIUMexamples/python/regression_plots.py252# Closely related to the influence_plot is the leverage-resid<sup>2</sup>COMMENT
MEDIUMexamples/python/regression_plots.py267# ### Using robust regression to correct for outliers.COMMENT
MEDIUMexamples/python/regression_plots.py270# M-estimators are not robust to leverage points. MM-estimators should doCOMMENT
113 more matches not shown…
Self-Referential Comments157 hits · 384 pts
SeverityFileLineSnippetContext
MEDIUMtools/releasing/release_note.py143# Create a What's New Dictionary to automatically populate the templateCOMMENT
MEDIUMarchive/panel/panelmod.py171 # Initialize pandas objects.COMMENT
MEDIUMarchive/examples/example_functional_plots.py20# Create a functional boxplot:COMMENT
MEDIUMarchive/examples/example_functional_plots.py40# Create a rainbow plot:COMMENT
MEDIUMarchive/examples/example_enhanced_boxplots.py25# Create a violin plot.COMMENT
MEDIUMarchive/examples/example_enhanced_boxplots.py46# Create a bean plot.COMMENT
MEDIUMarchive/examples/example_enhanced_boxplots.py67# Create a jitter plot.COMMENT
MEDIUMarchive/examples/example_enhanced_boxplots.py89# Create an asymmetrical jitter plot.COMMENT
MEDIUMarchive/examples/l1_demo/demo.py381 # Create the probability of entering the different classes,STRING
MEDIUMarchive/examples/l1_demo/demo.py387 # Create the endogSTRING
MEDIUMarchive/examples/l1_demo/demo.py402 # Create the probability of entering the different classes,STRING
MEDIUMarchive/examples/l1_demo/demo.py406 # Create the endogSTRING
MEDIUMarchive/examples/l1_demo/demo.py427 # Create the noiseless exogSTRING
MEDIUMdocs/source/conf.py5# This file is execfile()d with the current directory set to itsCOMMENT
MEDIUMdocs/source/plots/graphics_functional_rainbowplot.py19# Create a rainbow plot:COMMENT
MEDIUMdocs/source/plots/graphics_functional_hdrboxplot.py11# Create a HDR functional boxplot. We see that the years 1982-83 and 1997-98 areCOMMENT
MEDIUMdocs/source/plots/graphics_plot_fit_ex.py26# Create a plot just for the variable 'Poverty':COMMENT
MEDIUMdocs/source/plots/graphics_functional_fboxplot.py19# Create a functional boxplot. We see that the years 1982-83 and 1997-98 areCOMMENT
MEDIUMexamples/python/formulas.py155# Define a custom function:COMMENT
MEDIUMexamples/python/plots_boxplots.py139# Create a violin plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py160# Create a bean plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py181# Create a jitter plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py203# Create an asymmetrical jitter plot.COMMENT
MEDIUMexamples/python/kernel_density.py224# Create a figureCOMMENT
MEDIUMexamples/python/kernel_density.py230 # Initialize the kernel objectCOMMENT
MEDIUMexamples/python/kernel_density.py238 # Create a subplot, set the titleCOMMENT
MEDIUMexamples/python/kernel_density.py259# Create a figureCOMMENT
MEDIUMexamples/python/kernel_density.py265 # Create a subplot, set the titleCOMMENT
MEDIUMexamples/python/kernel_density.py272 # Create the plotCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc.py111# Define the inflation series that we'll use in analysisCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc.py132# Create an SARIMAX model instance - here we use it to estimateCOMMENT
MEDIUMexamples/python/statespace_news.py127# Creating the forecasts from the results object `res` is easy - you canCOMMENT
MEDIUMexamples/python/statespace_news.py191# Create a new results object by passing the new observations to theCOMMENT
MEDIUMexamples/python/statespace_news.py586# Create the news resultsCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py227# Create the modelCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py806# Create the modelCOMMENT
MEDIUMexamples/python/theta-model.py67# This module is based on:COMMENT
MEDIUMexamples/python/statespace_tvpvar_mcmc_cfa.py391 # Create a matrix with [y_t' : y_{t-1}'] for t = 2, ..., TCOMMENT
MEDIUMexamples/python/statespace_tvpvar_mcmc_cfa.py443# The above class defined the state space model for any given dataset. NowCOMMENT
MEDIUMexamples/python/statespace_tvpvar_mcmc_cfa.py449# Create an instance of our TVPVAR class with our observed dataset yCOMMENT
MEDIUMexamples/python/predict.py54# ## Create a new sample of explanatory variables Xnew, predict and plotCOMMENT
MEDIUMexamples/python/mstl_decomposition.py72# ### Create a toy dataset with multiple seasonalitiesCOMMENT
MEDIUMstatsmodels/nonparametric/kernel_regression.py232 # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ijCOMMENT
MEDIUMstatsmodels/nonparametric/kernel_regression.py751 # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ijCOMMENT
MEDIUMstatsmodels/nonparametric/tests/test_lowess.py235 # Create a curve that is easy to fit at first but getsCOMMENT
MEDIUMstatsmodels/datasets/utils.py318# The below function were taken from sklearnCOMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py1602 # Create the full d matrix given all known dij valsCOMMENT
MEDIUMstatsmodels/imputation/mice.py604 # Create an indicator matrix for missing values.COMMENT
MEDIUMstatsmodels/genmod/cov_struct.py1480 # Create the pairs and order themCOMMENT
MEDIUM…atsmodels/genmod/tests/gee_poisson_simulation_check.py78 # Create an exog matrix so that E[Y] = log(dot(exog1, params))COMMENT
MEDIUMstatsmodels/tsa/statespace/structural.py553 # Create a bitmask holding the level/trend specificationSTRING
MEDIUMstatsmodels/tsa/statespace/structural.py562 # Create the trend specification, if it was not givenSTRING
MEDIUMstatsmodels/tsa/statespace/structural.py975 # Create the starting parameter listCOMMENT
MEDIUMstatsmodels/tsa/statespace/structural.py1840 # Create the model nameCOMMENT
MEDIUMstatsmodels/tsa/statespace/_pykalman_smoother.py211 # Create a temporary matrixCOMMENT
MEDIUMstatsmodels/tsa/statespace/varmax.py570 # Create the state covariance matrixSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py647 # Create the state covariance matrixSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py1158 # Create the model nameSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py1248 # Create the tableSTRING
MEDIUMstatsmodels/tsa/statespace/dynamic_factor.py1172 # Create the new axisSTRING
97 more matches not shown…
Deep Nesting264 hits · 258 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py766CODE
LOWtools/validate_docstrings.py1004CODE
LOWtools/validate_docstrings.py1071CODE
LOWtools/validate_docstrings.py378CODE
LOWtools/validate_docstrings.py518CODE
LOWtools/check_public_api_coverage.py84CODE
LOWtools/class_coverage_report.py124CODE
LOWtools/class_coverage_report.py194CODE
LOWtools/export_notebooks_to_python.py104CODE
LOWtools/releasing/enumerate-api.py65CODE
LOWtools/releasing/enumerate-api.py104CODE
LOWarchive/sysreg.py166CODE
LOWarchive/bspline.py35CODE
LOWarchive/pca.py156CODE
LOWarchive/gam.py64CODE
LOWarchive/panel/panelmod.py210CODE
LOWarchive/tests/test_predict_functional.py152CODE
LOWarchive/examples/example_nbin.py128CODE
LOWarchive/regression/ols_anova_original.py208CODE
LOWarchive/regression/try_ols_anova.py125CODE
LOWarchive/regression/treewalkerclass.py329CODE
LOWarchive/distributions/genpareto.py108CODE
LOWarchive/distributions/sppatch.py201CODE
LOWarchive/stats/stats_dhuard.py123CODE
LOWarchive/stats/stats_dhuard.py183CODE
LOWstatsmodels/conftest.py169CODE
LOWstatsmodels/robust/covariance.py664CODE
LOWstatsmodels/nonparametric/smoothers_lowess.py15CODE
LOWstatsmodels/tools/web.py10CODE
LOWstatsmodels/tools/rng_qrng.py7CODE
LOWstatsmodels/tools/tools.py85CODE
LOWstatsmodels/tools/rootfinding.py56CODE
LOWstatsmodels/tools/docstring.py315CODE
LOWstatsmodels/tools/docstring.py408CODE
LOWstatsmodels/tools/docstring.py520CODE
LOWstatsmodels/tools/validation/validation.py304CODE
LOWstatsmodels/tools/validation/validation.py375CODE
LOWstatsmodels/compat/scipy.py17CODE
LOWstatsmodels/multivariate/multivariate_ols.py286CODE
LOWstatsmodels/multivariate/multivariate_ols.py459CODE
LOWstatsmodels/multivariate/multivariate_ols.py622CODE
LOWstatsmodels/multivariate/manova.py78CODE
LOWstatsmodels/multivariate/pca.py331CODE
LOWstatsmodels/multivariate/factor_rotation/_wrappers.py17CODE
LOW…tsmodels/multivariate/factor_rotation/_gpa_rotation.py29CODE
LOWstatsmodels/discrete/discrete_model.py1762CODE
LOWstatsmodels/discrete/discrete_model.py2470CODE
LOWstatsmodels/discrete/discrete_model.py3967CODE
LOWstatsmodels/discrete/discrete_model.py4822CODE
LOWstatsmodels/discrete/discrete_margins.py207CODE
LOWstatsmodels/discrete/diagnostic.py174CODE
LOWstatsmodels/discrete/count_model.py461CODE
LOWstatsmodels/discrete/truncated_model.py302CODE
LOWstatsmodels/discrete/truncated_model.py1566CODE
LOWstatsmodels/datasets/utils.py396CODE
LOWstatsmodels/miscmodels/ordinal_model.py126CODE
LOWstatsmodels/iolib/summary.py735CODE
LOWstatsmodels/iolib/summary.py781CODE
LOWstatsmodels/iolib/table.py91CODE
LOWstatsmodels/iolib/table.py388CODE
204 more matches not shown…
AI Structural Patterns260 hits · 250 pts
SeverityFileLineSnippetContext
LOWtools/nbgenerate.py102CODE
LOWtools/nbgenerate.py171CODE
LOWarchive/predict_functional.py298CODE
LOWarchive/mle.py25CODE
LOWarchive/mle.py34CODE
LOWarchive/nonparametric/densityorthopoly.py339CODE
LOWarchive/examples/l1_demo/demo.py168CODE
LOWexamples/python/statespace_sarimax_pymc.py224CODE
LOWexamples/python/statespace_custom_models.py783CODE
LOWstatsmodels/robust/tools.py159CODE
LOWstatsmodels/robust/covariance.py638CODE
LOWstatsmodels/robust/covariance.py491CODE
LOWstatsmodels/robust/covariance.py893CODE
LOWstatsmodels/robust/covariance.py1018CODE
LOWstatsmodels/robust/covariance.py1324CODE
LOWstatsmodels/robust/covariance.py1779CODE
LOWstatsmodels/robust/covariance.py1913CODE
LOWstatsmodels/robust/covariance.py2114CODE
LOWstatsmodels/robust/covariance.py2369CODE
LOWstatsmodels/robust/covariance.py2586CODE
LOWstatsmodels/robust/resistant_linear_model.py143CODE
LOWstatsmodels/robust/robust_linear_model.py223CODE
LOWstatsmodels/robust/scale.py684CODE
LOWstatsmodels/robust/scale.py801CODE
LOWstatsmodels/nonparametric/smoothers_lowess_old.py136CODE
LOWstatsmodels/nonparametric/kde.py340CODE
LOWstatsmodels/nonparametric/kde.py529CODE
LOWstatsmodels/nonparametric/kde.py96CODE
LOWstatsmodels/tools/rootfinding.py56CODE
LOWstatsmodels/tools/docstring.py726CODE
LOWstatsmodels/tools/_decorators.py82CODE
LOWstatsmodels/tools/validation/validation.py42CODE
LOWstatsmodels/multivariate/pca.py212CODE
LOWstatsmodels/multivariate/factor.py161CODE
LOWstatsmodels/discrete/discrete_model.py280CODE
LOWstatsmodels/discrete/discrete_model.py606CODE
LOWstatsmodels/discrete/discrete_model.py645CODE
LOWstatsmodels/discrete/discrete_model.py873CODE
LOWstatsmodels/discrete/discrete_model.py1253CODE
LOWstatsmodels/discrete/discrete_model.py1482CODE
LOWstatsmodels/discrete/discrete_model.py2062CODE
LOWstatsmodels/discrete/discrete_model.py2141CODE
LOWstatsmodels/discrete/discrete_model.py4037CODE
LOWstatsmodels/discrete/discrete_model.py4124CODE
LOWstatsmodels/discrete/discrete_model.py4652CODE
LOWstatsmodels/discrete/discrete_model.py4749CODE
LOWstatsmodels/discrete/discrete_model.py5209CODE
LOWstatsmodels/discrete/discrete_model.py5185CODE
LOWstatsmodels/discrete/discrete_model.py5296CODE
LOWstatsmodels/discrete/discrete_model.py5879CODE
LOWstatsmodels/discrete/conditional_models.py129CODE
LOWstatsmodels/discrete/conditional_models.py666CODE
LOWstatsmodels/discrete/_diagnostics_count.py268CODE
LOWstatsmodels/discrete/_diagnostics_count.py413CODE
LOWstatsmodels/discrete/_diagnostics_count.py649CODE
LOWstatsmodels/discrete/_diagnostics_count.py754CODE
LOWstatsmodels/discrete/_diagnostics_count.py815CODE
LOWstatsmodels/discrete/diagnostic.py115CODE
LOWstatsmodels/discrete/diagnostic.py172CODE
LOWstatsmodels/discrete/diagnostic.py328CODE
200 more matches not shown…
Modern Structural Boilerplate125 hits · 124 pts
SeverityFileLineSnippetContext
LOWarchive/sysreg.py9__all__ = ["SUR", "Sem2SLS"]CODE
LOWarchive/multilinear.py22logger = logging.getLogger(__name__)CODE
LOWarchive/nonparametric/kernel_extras.py44__all__ = ["SemiLinear", "SingleIndexModel", "TestFForm"]CODE
LOWarchive/panel/panelmod.py16__all__ = ["PanelModel"]CODE
LOWarchive/stats/diagnostic.py25__all__ = [CODE
LOWstatsmodels/conftest.py20logger = logging.getLogger(__name__)CODE
LOWstatsmodels/__init__.py29__all__ = ["__version__", "__version_info__", "__version_tuple__", "test"]CODE
LOWstatsmodels/api.py1__all__ = [CODE
LOWstatsmodels/robust/__init__.py2__all__ = [CODE
LOWstatsmodels/robust/robust_linear_model.py29__all__ = ["RLM"]CODE
LOWstatsmodels/nonparametric/kernel_regression.py53__all__ = ["KernelCensoredReg", "KernelReg"]CODE
LOWstatsmodels/nonparametric/kernel_density.py47__all__ = ["EstimatorSettings", "KDEMultivariate", "KDEMultivariateConditional"]CODE
LOWstatsmodels/nonparametric/api.py1__all__ = [CODE
LOWstatsmodels/tools/eval_measures.py682__all__ = [STRING
LOWstatsmodels/tools/__init__.py7__all__ = ["add_constant", "test"]CODE
LOWstatsmodels/tools/linalg.py5__all__ = ["logdet_symm", "matrix_sqrt", "stationary_solve", "transf_constraints"]CODE
LOWstatsmodels/tools/_decorators.py7__all__ = [CODE
LOWstatsmodels/tools/typing.py34__all__ = [CODE
LOWstatsmodels/tools/validation/__init__.py14__all__ = [CODE
LOWstatsmodels/compat/matplotlib.py11__all__ = ["MPL_LT_310"]CODE
LOWstatsmodels/compat/pandas.py27__all__ = [CODE
LOWstatsmodels/compat/__init__.py10__all__ = [CODE
LOWstatsmodels/compat/numpy.py45__all__ = [CODE
LOWstatsmodels/compat/platform.py7__all__ = [CODE
LOWstatsmodels/compat/pytest.py11__all__ = ["pytest_warns"]CODE
LOWstatsmodels/compat/scipy.py135__all__ = [CODE
LOWstatsmodels/compat/python.py33__all__ = [CODE
LOWstatsmodels/multivariate/api.py1__all__ = [CODE
LOWstatsmodels/multivariate/factor_rotation/__init__.py29__all__ = [CODE
LOWstatsmodels/multivariate/factor_rotation/_wrappers.py14__all__ = []CODE
LOWstatsmodels/discrete/discrete_model.py19__all__ = [CODE
LOWstatsmodels/discrete/count_model.py1__all__ = [CODE
LOWstatsmodels/discrete/truncated_model.py1__all__ = [CODE
LOWstatsmodels/datasets/__init__.py42__all__ = [CODE
LOWstatsmodels/datasets/statecrime/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/committee/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/engel/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/strikes/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/cpunish/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/anes96/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/heart/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/modechoice/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/randhie/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/copper/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/fertility/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/elec_equip/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/sunspots/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/china_smoking/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/star98/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/macrodata/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/scotland/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/longley/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/spector/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/cancer/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/fair/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/nile/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/ccard/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/danish_data/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/stackloss/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/elnino/__init__.py1__all__ = [CODE
65 more matches not shown…
AI Response Leakage16 hits · 124 pts
SeverityFileLineSnippetContext
HIGHarchive/panel/mixed.py643# # note I have written this already as helper function, get itCOMMENT
HIGHexamples/python/glm.py31# In this example, we use the Star98 dataset which was taken withCOMMENT
HIGHexamples/python/glm_weights.py27# In this example, we'll use the affair dataset using a handful ofCOMMENT
HIGHexamples/python/statespace_varmax.py95# uncorrelated. In this example we leave out the exogenous regressor but nowCOMMENT
HIGHexamples/python/kernel_density.py34# In this example we will show the following:COMMENT
HIGHexamples/python/statespace_news.py462# In this example, we'll consider forecasting monthly core price inflationCOMMENT
HIGHexamples/python/categorical_interaction_plot.py16# In this example, we will visualize the interaction between categoricalCOMMENT
HIGHexamples/python/multivariate_ls.py153# In this example, the pvalues agree at 3 decimals.COMMENT
HIGHexamples/python/wls.py54# In this example, `w` is the standard deviation of the error. `WLS`COMMENT
HIGHexamples/python/influence_glm_logit.py71# In this example observation 4 and 18 have a large standardized residualCOMMENT
HIGHexamples/python/metaanalysis1.py153# In this example the effect size is the mean of measurements in a lab. WeCOMMENT
HIGHexamples/python/rolling_ls.py149# available for the full window length. In this example, we start once weCOMMENT
HIGHexamples/python/ordinal_regression.py252# In this example, the created dummy variables `C(dummy)[0.0]` andCOMMENT
HIGHexamples/incomplete/ols_table.py13# Note: In this example using zscored/standardized variables has no effect onCOMMENT
HIGH…statespace/tests/test_dynamic_factor_mq_monte_carlo.py490 # In this example, both endog_M and endog_Q are equal to the factors,COMMENT
HIGH…statespace/tests/test_dynamic_factor_mq_monte_carlo.py652 # In this example, both endog_M and endog_Q are equal to the factors,COMMENT
Excessive Try-Catch Wrapping61 hits · 59 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py544 except Exception as exc:CODE
LOWtools/check_public_api_coverage.py125 except Exception:CODE
LOWtools/check_public_api_coverage.py155 except Exception:CODE
LOWtools/check_public_api_coverage.py183 except Exception:CODE
LOWtools/check_public_api_coverage.py250 except Exception:CODE
LOWtools/check_public_api_coverage.py302 except Exception:CODE
MEDIUMtools/check_public_api_coverage.py150def _srcinfo(obj):CODE
LOWtools/nbgenerate.py137 except Exception as e:STRING
LOWtools/releasing/enumerate-api.py55 except Exception:CODE
LOWtools/releasing/enumerate-api.py96 except Exception:CODE
LOWarchive/sysreg.py331 except Exception as exc:CODE
LOWarchive/examples/ex_emplike_2.py91except Exception:CODE
LOWarchive/examples/try_tukey_hsd.py391except Exception as e:CODE
LOWarchive/examples/run_all.py72 except Exception:CODE
LOWarchive/examples/example_sysreg.py159 except Exception as exc:CODE
LOWarchive/examples/thirdparty/ex_ratereturn.py23except Exception: # blanket for any unpickling errorCODE
MEDIUMarchive/examples/thirdparty/ex_ratereturn.py24 print("Error with unpickling, a new pickle file can be created with findow_1")CODE
LOWarchive/distributions/gof_new.py121 except Exception:CODE
LOWarchive/distributions/tests/check_moments.py102 except Exception:CODE
LOWdocs/source/conf.py511 except Exception as exc:STRING
LOWexamples/run_all.py38 except Exception as e:CODE
LOWexamples/python/statespace_sarimax_internet.py91 except Exception:CODE
LOWexamples/python/statespace_sarimax_internet.py101 except Exception:CODE
LOWstatsmodels/nonparametric/kde.py49 except Exception as exc:CODE
MEDIUMstatsmodels/nonparametric/kde.py46def _checkisfit(self):CODE
LOWstatsmodels/tools/validation/validation.py298 except Exception as exc:CODE
LOWstatsmodels/tools/validation/validation.py341 except Exception:CODE
LOWstatsmodels/tools/validation/validation.py417 except Exception:CODE
LOWstatsmodels/compat/patsy.py149 except Exception:CODE
LOWstatsmodels/datasets/utils.py81 except Exception:CODE
LOWstatsmodels/datasets/utils.py222 except Exception:CODE
LOWstatsmodels/genmod/generalized_linear_model.py1260 except Exception as exc:STRING
LOWstatsmodels/tsa/arima_process.py897 except Exception as exc:STRING
LOWstatsmodels/tsa/x13.py591 except Exception as os_err:STRING
LOWstatsmodels/tsa/deterministic.py116 except Exception as exc:CODE
LOWstatsmodels/tsa/tsatools.py131 except Exception:CODE
MEDIUMstatsmodels/tsa/tsatools.py128def safe_is_const(s):CODE
LOWstatsmodels/tsa/ar_model.py1883 except Exception as exc:CODE
LOWstatsmodels/tsa/statespace/mlemodel.py5577 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/statespace/mlemodel.py5581 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/statespace/mlemodel.py5585 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/vector_ar/util.py440 except Exception:CODE
LOWstatsmodels/tsa/regime_switching/markov_switching.py1581 except Exception: # FIXME: catch something specificCODE
LOWstatsmodels/tsa/arima/tests/test_model.py485 except Exception as exc:STRING
LOWstatsmodels/tsa/arima/tests/test_model.py495 except Exception as exc:STRING
LOWstatsmodels/tsa/ardl/model.py1217 except Exception as exc:CODE
LOWstatsmodels/tsa/stattools/_arma_order_selection.py41 except Exception: # no idea what happenedCODE
LOWstatsmodels/tsa/holtwinters/model.py259 except Exception as exc:CODE
LOWstatsmodels/tsa/exponential_smoothing/base.py845 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/exponential_smoothing/base.py849 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/exponential_smoothing/base.py853 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/base/tsa_model.py572 except Exception as exc:CODE
LOWstatsmodels/graphics/gofplots.py248 except Exception as exc:CODE
LOWstatsmodels/graphics/gofplots.py280 except Exception as exc:CODE
LOWstatsmodels/base/model.py1290 except Exception as exc:CODE
LOWstatsmodels/base/tests/test_polars_compat.py290 except Exception as e:CODE
LOWstatsmodels/stats/tabledist.py94 except Exception as exc:CODE
LOWstatsmodels/stats/diagnostic.py1544 except Exception as exc:STRING
LOWstatsmodels/stats/libqsturng/qsturng_.py1915 except Exception:CODE
LOWstatsmodels/stats/libqsturng/qsturng_.py2099 except Exception as e:CODE
1 more matches not shown…
Dead Code23 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUMstatsmodels/tools/tests/test_numdiff.py333CODE
MEDIUMstatsmodels/tools/tests/test_numdiff.py334CODE
MEDIUMstatsmodels/discrete/count_model.py659CODE
MEDIUMstatsmodels/discrete/count_model.py660CODE
MEDIUMstatsmodels/discrete/count_model.py662CODE
MEDIUMstatsmodels/discrete/count_model.py672CODE
MEDIUMstatsmodels/discrete/count_model.py674CODE
MEDIUMstatsmodels/discrete/tests/test_truncated_model.py137CODE
MEDIUMstatsmodels/discrete/tests/test_truncated_model.py178CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py862CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py863CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py865CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py866CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py868CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py869CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py870CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py874CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py875CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py876CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py877CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py878CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py879CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py880CODE
Structural Annotation Overuse22 hits · 32 pts
SeverityFileLineSnippetContext
LOWexamples/python/statespace_news.py105# #### Step 1: fitting the model on the available datasetCOMMENT
LOWexamples/python/statespace_news.py168# #### Step 2: computing the "news" from a new observationCOMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py422 # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I)COMMENT
LOWexamples/python/statespace_forecasting.py190# Step 1: fit model parameters w/ training sampleCOMMENT
LOWexamples/python/statespace_forecasting.py201# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py204# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py243# Step 1: append a new observation to the sample and refit the parametersCOMMENT
LOWexamples/python/statespace_forecasting.py256# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py259# Step 3: compute root mean square forecasting errorCOMMENT
LOWstatsmodels/tsa/statespace/tools.py893 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py898 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOWstatsmodels/tsa/statespace/tools.py936 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py942 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOWstatsmodels/tsa/statespace/tools.py1472 # Step 1: convert matrices from the space of stationarySTRING
LOWstatsmodels/tsa/statespace/tools.py1478 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py201 # Step 2: estimate ARMA model via least squaresCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py247 # Step 3: bias correction (if requested)COMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py186 # Step 1: OLSCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py211 # Step 2 - 4: iterate feasible GLS to convergenceCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py232 # Step 2: ARMACOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py304 # Step 3: GLSCOMMENT
Verbosity Indicators21 hits · 31 pts
SeverityFileLineSnippetContext
LOWexamples/python/statespace_news.py105# #### Step 1: fitting the model on the available datasetCOMMENT
LOWexamples/python/statespace_news.py168# #### Step 2: computing the "news" from a new observationCOMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py422 # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I)COMMENT
LOWexamples/python/statespace_forecasting.py190# Step 1: fit model parameters w/ training sampleCOMMENT
LOWexamples/python/statespace_forecasting.py201# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py204# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py243# Step 1: append a new observation to the sample and refit the parametersCOMMENT
LOWexamples/python/statespace_forecasting.py256# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py259# Step 3: compute root mean square forecasting errorCOMMENT
LOWstatsmodels/tsa/statespace/tools.py893 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py898 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOWstatsmodels/tsa/statespace/tools.py936 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py942 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOWstatsmodels/tsa/statespace/tools.py1472 # Step 1: convert matrices from the space of stationarySTRING
LOWstatsmodels/tsa/statespace/tools.py1478 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py201 # Step 2: estimate ARMA model via least squaresCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py247 # Step 3: bias correction (if requested)COMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py186 # Step 1: OLSCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py232 # Step 2: ARMACOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py304 # Step 3: GLSCOMMENT
Hallucination Indicators2 hits · 25 pts
SeverityFileLineSnippetContext
CRITICALarchive/mcevaluate/mcresuts_arma1.txt7scikits.statsmodels.tsa.arma_mle.Arma.fit((2,0,2))CODE
CRITICALstatsmodels/stats/outliers_influence.py538 # self.results.model.family.link.deriv(self.results.fittedvalues)COMMENT
Slop Phrases8 hits · 21 pts
SeverityFileLineSnippetContext
MEDIUMarchive/examples/example_discrete_mnl.py21# However, you can use other solversCOMMENT
MEDIUMexamples/python/formulas.py46# Or you can use the following conventionCOMMENT
MEDIUMexamples/python/statespace_forecasting.py483# you can use a Pandas series with an associated frequency, you'll have moreCOMMENT
MEDIUMexamples/python/regression_plots.py136# For a quick check of all the regressors, you can useCOMMENT
MEDIUMexamples/python/regression_plots.py138# points, but you can use them to identify problems and then useCOMMENT
LOWexamples/python/statespace_custom_models.py752# .html), so make sure to check that for more details.COMMENT
MEDIUMexamples/python/glm_formula.py16# This notebook illustrates how you can use R-style formulas to fitCOMMENT
LOW…smodels/regression/tests/results/results_regression.py184 # from Stata, make sure you force double to replicateCOMMENT
Redundant / Tautological Comments15 hits · 17 pts
SeverityFileLineSnippetContext
LOWarchive/examples/l1_demo/short_demo.py48# Print resultsCOMMENT
LOWarchive/examples/l1_demo/short_demo.py75# Print resultsCOMMENT
LOW…odels/genmod/tests/gee_categorical_simulation_check.py198 # Loop over data generating modelsCOMMENT
LOWstatsmodels/genmod/tests/gee_simulation_check.py255# Loop over data generating modelsCOMMENT
LOW…tsmodels/genmod/tests/gee_gaussian_simulation_check.py260 # Loop over data generating modelsCOMMENT
LOW…atsmodels/genmod/tests/gee_poisson_simulation_check.py186 # Loop over data generating modelsCOMMENT
LOWstatsmodels/tsa/statespace/structural.py433 # Check if any of the trend/level components have been set, andSTRING
LOWstatsmodels/tsa/statespace/tools.py234 # Check if we just have a scalar polynomialSTRING
LOWstatsmodels/tsa/statespace/tools.py237 # Check if 1 was passed as the first argument (indicating anSTRING
LOWstatsmodels/tsa/statespace/representation.py264 # Check if k_endog is actually the endog arraySTRING
LOWstatsmodels/tsa/statespace/dynamic_factor_mq.py2706 # Print output every `disp` observationsSTRING
LOWstatsmodels/tsa/regime_switching/markov_switching.py813 # Check if we need to do weighted averagingCOMMENT
LOWstatsmodels/tsa/base/tsa_model.py212 # Check if we now have a modified indexCOMMENT
LOWstatsmodels/regression/process_regression.py973 # Check if the group exists, since _groups_ix is aCOMMENT
LOWstatsmodels/duration/tests/results/phreg_gentests.py26 # Set this to get a reasonable amount of censoringCOMMENT
Synthetic Comment Markers2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHstatsmodels/imputation/mice.py611 # Order the columns as requestedCOMMENT
HIGHstatsmodels/imputation/mice.py627 # Order the rows as requestedCOMMENT
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWstatsmodels/tsa/statespace/exponential_smoothing.py173 # TODO: add validation for bounds (e.g., have all bounds, upper > lower)COMMENT
LOWstatsmodels/regression/tests/test_lme.py32# TODO: add tests with unequal group sizesCOMMENT
LOWstatsmodels/regression/tests/test_robustcov.py32# TODO: implement test_hac_simpleCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…s/genmod/tests/results/test_get_R_tweedie_var_weight.R4# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWstatsmodels/tools/tests/test_web.py26 def test_function(self):CODE