AI Slop Code RIsk Monitor

statsmodels/statsmodels

Statsmodels: statistical modeling and econometrics in Python

13.7 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for statsmodels/statsmodels, a Python project with 11,681 GitHub stars. SynthScan examined 543,222 lines of code across 1575 source files, recording 5191 pattern matches distributed across 25 syntactic categories. The legacy adjusted pattern signal is 13.7 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

13.7
Adjusted Signal
13.7
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
11.7K
Stars
Python
Language
543.2K
Lines of Code
1.6K
Files
5.2K
Pattern Hits
2026-10-12
Scan Date
0.25
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 31.1/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 3510 finding(s).

Hallucinated Dependency & Supply Chain Risk 14.6/100 · LOW

Are imports declared and package/API names verified? 1112 finding(s).

Agent Over-Engineering Ratio 29.0/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 2737 finding(s).

PR Review Velocity Impact 53.0/100 · HIGH

Which changes need focused human review? 5191 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 391MEDIUM 523LOW 4275

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 5191 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers1908 hits · 1830 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.py51def _check_standardizing_scale(scale):STRING
LOWstatsmodels/robust/covariance.py118def _naive_ledoit_wolf_shrinkage(x, center):STRING
LOWstatsmodels/robust/covariance.py153def coef_normalize_cov_truncated(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py194def _coef_normalize_cov_truncated_(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py1012def 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_rlm.py546def test_mad_iqr_nonpositive_c_raises():CODE
LOWstatsmodels/robust/tests/test_scale.py258 def test_qn_too_few_observations(self):CODE
LOWstatsmodels/robust/tests/test_scale.py519def test_scale_trimmed_approx():CODE
LOWstatsmodels/robust/tests/test_scale.py554def test_scale_trimmed_distarge():CODE
LOW⚡statsmodels/robust/tests/test_covariance.py738def test_covdet_large_k_det_normalization(cov_class):CODE
LOW⚡statsmodels/robust/tests/test_covariance.py746def test_cov_tyler_regularized_n_iter():CODE
LOW⚡statsmodels/robust/tests/test_covariance.py756def test_cov_tyler_regularized_corr_uses_scale():CODE
LOWstatsmodels/robust/tests/test_covariance.py295def test_naive_ledoit_wolf_shrinkage():CODE
LOWstatsmodels/robust/tests/test_covariance.py358def test_naive_ledoit_wolf_shrinkage_spherical(x):CODE
LOWstatsmodels/robust/tests/test_covariance.py365def test_cov_starting_small_nobs():CODE
LOWstatsmodels/robust/tests/test_covariance.py395def test_cov_starting_keeps_trimmed_starts():CODE
LOWstatsmodels/robust/tests/test_covariance.py409def test_mahalanobis_singular_cov():CODE
LOWstatsmodels/robust/tests/test_covariance.py424def test_mahalanobis_singular_cov_additional():CODE
LOWstatsmodels/robust/tests/test_covariance.py439def test_mahalanobis_numerically_singular_cov(seed):CODE
LOWstatsmodels/robust/tests/test_covariance.py458def test_mahalanobis_ill_conditioned_cov():CODE
LOWstatsmodels/robust/tests/test_covariance.py471def test_mahalanobis_badly_scaled_cov(span):CODE
LOWstatsmodels/robust/tests/test_covariance.py493def test_mahalanobis_cov_not_square():CODE
LOWstatsmodels/robust/tests/test_covariance.py501def test_cov_weighted_det_non_finite_determinant():CODE
LOWstatsmodels/robust/tests/test_covariance.py527def test_covdetmcd_rank_by_logdet():CODE
LOWstatsmodels/robust/tests/test_covariance.py650def test_cov_tyler_regularized_one_column():CODE
LOWstatsmodels/robust/tests/test_covariance.py678def test_naive_ledoit_wolf_one_column():CODE
LOWstatsmodels/robust/tests/test_covariance.py688def test_cov_starting_one_column(nobs):CODE
LOWstatsmodels/robust/tests/test_covariance.py727def test_det_root_does_not_overflow():CODE
LOWstatsmodels/robust/tests/test_covariance.py841def test_cov_iter_invalid_rescale_raises():CODE
LOWstatsmodels/robust/tests/test_covariance.py850def test_get_detcov_startidx_invalid_methods_cov_raises():CODE
LOWstatsmodels/robust/tests/test_covariance.py872def test_get_detcov_startidx_r_deterministic_mcd():CODE
LOWstatsmodels/robust/tests/test_covariance.py902def test_get_detcov_startidx_ranks_by_mahalanobis_distance():CODE
LOWstatsmodels/robust/tests/test_covariance.py928def test_covdet_zero_standardizing_scale_raises(cov_class, fit_kw):CODE
LOWstatsmodels/robust/tests/test_covariance.py941def test_cov_starting_zero_mad_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.py170 def test_fit_beats_ols_under_contamination(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py182 def test_efficiency_close_to_ols_on_clean_data(self):CODE
LOWstatsmodels/robust/tests/test_resistant_linear_model.py204 def test_start_tuple_skips_s_stage(self):CODE
1848 more matches not shown…
Cross-Language Confusion204 hits · 933 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.py2069 self._endog, self.null, self._var_weights, self._freq_weightsSTRING
HIGHstatsmodels/genmod/generalized_linear_model.py2079 self.null,STRING
HIGHstatsmodels/genmod/tests/test_glm.py1045 assert_allclose(mod1.null, mod2.null, rtol=1e-10)STRING
HIGH⚡statsmodels/tsa/statespace/tools.py380 if s.columns.equals(pd.Index([None])):STRING
HIGH⚡statsmodels/tsa/statespace/tools.py386 if axis == 0 and not base_columns.equals(s_columns):STRING
HIGH⚡statsmodels/tsa/statespace/tools.py389 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
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1905 assert_(actual.columns.equals(desired.columns))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1915 assert_(actual.index.equals(desired.index))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1916 assert_(actual.columns.equals(desired.columns))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1957 assert_(actual.columns.equals(desired.columns))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1967 assert_(actual.index.equals(desired.index))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py1968 assert_(actual.columns.equals(desired.columns))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py2019 assert_(actual.index.equals(desired.index))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py2020 assert_(actual.columns.equals(desired.columns))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_simulate.py2093 assert_(actual.index.equals(desired.index))CODE
HIGH⚡statsmodels/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
HIGH⚡statsmodels/tsa/statespace/tests/test_sarimax.py2967 assert_(mod._index.equals(endog.index[1:]))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_sarimax.py2975 assert_(mod._index.equals(endog.index[1:]))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_sarimax.py2985 assert_(mod._index.equals(endog.index[1:]))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_sarimax.py2997 assert_(mod._index.equals(pd.RangeIndex(start=0, stop=len(values) - 1)))CODE
HIGH⚡statsmodels/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.py1603 assert_(mod._index.equals(mod_base._index))CODE
HIGH⚡…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1610 assert_(mod._index.equals(mod_base._index))CODE
HIGH⚡…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1617 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1692 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1693 assert_(actual.columns.equals(desired.columns))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1708 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1726 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1727 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_varmax.py976 assert out.index.equals(pd.Index(["a"]))CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_mlemodel.py1309 assert states.predicted.index.equals(predicted_ix)CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_mlemodel.py1310 assert states.predicted.columns.equals(cols)CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_mlemodel.py1312 assert states.predicted_cov.index.equals(predicted_cov_ix)CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_mlemodel.py1313 assert states.predicted.columns.equals(cols)CODE
HIGH⚡statsmodels/tsa/statespace/tests/test_mlemodel.py1316 assert states.filtered.index.equals(ix)CODE
144 more matches not shown…
Unused Imports905 hits · 758 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
845 more matches not shown…
Over-Commented Block653 hits · 618 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
593 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
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py28# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py85# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/tsa/filters/tests/test_hamilton_filter.py87# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡statsmodels/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 Vocabulary179 hits · 468 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
MEDIUM⚡examples/python/postestimation_poisson.py133# correlation robust covariance type.COMMENT
MEDIUM⚡examples/python/postestimation_poisson.py134# It currently uses the same implementation and defaults for the robustCOMMENT
MEDIUM⚡examples/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
MEDIUM⚡examples/python/robust_models_1.py146# * The mean is not a robust estimator of locationCOMMENT
MEDIUM⚡examples/python/robust_models_1.py152# * The median, on the other hand, is a robust estimator with a breakdownCOMMENT
MEDIUM⚡examples/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
MEDIUM⚡examples/python/influence_glm_logit.py72# and large Cook's distance, but not a large leverage. Observation 13 hasCOMMENT
MEDIUM⚡examples/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
MEDIUM⚡examples/python/regression_plots.py80# and reporter have low leverage but a large residual. <br />COMMENT
MEDIUM⚡examples/python/regression_plots.py81# RR.engineer has small residual and large leverage. Conductor andCOMMENT
MEDIUM⚡examples/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
MEDIUM⚡examples/python/regression_plots.py267# ### Using robust regression to correct for outliers.COMMENT
MEDIUM⚡examples/python/regression_plots.py270# M-estimators are not robust to leverage points. MM-estimators should doCOMMENT
119 more matches not shown…
Self-Referential Comments157 hits · 382 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
MEDIUM⚡examples/python/kernel_density.py224# Create a figureCOMMENT
MEDIUM⚡examples/python/kernel_density.py230 # Initialize the kernel objectCOMMENT
MEDIUM⚡examples/python/kernel_density.py238 # Create a subplot, set the titleCOMMENT
MEDIUM⚡examples/python/kernel_density.py259# Create a figureCOMMENT
MEDIUM⚡examples/python/kernel_density.py265 # Create a subplot, set the titleCOMMENT
MEDIUM⚡examples/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.py234 # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ijCOMMENT
MEDIUMstatsmodels/nonparametric/kernel_regression.py753 # 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.py1607 # 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…
Empty Error Handlers65 hits · 322 pts
SeverityFileLineSnippetContext
HIGHtools/validate_docstrings.py416except TypeError:CODE
HIGHtools/validate_docstrings.py433except (OSError, TypeError):CODE
HIGHtools/validate_docstrings.py365except ImportError:CODE
HIGHtools/releasing/release_note.py98except GithubException:CODE
HIGHarchive/tests/test_predict_functional.py10except ImportError:CODE
HIGHarchive/examples/tests/test_notebooks.py18except ImportError:CODE
HIGHarchive/regression/onewaygls.py118except (KeyError, ValueError):CODE
HIGHdocs/source/conf.py61except ImportError as err: # noqa: F841CODE
HIGHstatsmodels/conftest.py116except ImportError:CODE
HIGHstatsmodels/tools/_testing.py106except AttributeError:CODE
HIGHstatsmodels/tools/validation/validation.py341except Exception:CODE
HIGHstatsmodels/tools/validation/validation.py417except Exception:CODE
HIGHstatsmodels/compat/patsy.py23except ImportError:CODE
HIGHstatsmodels/discrete/discrete_model.py788except KeyError:CODE
HIGHstatsmodels/discrete/conditional_models.py374except KeyError:CODE
HIGHstatsmodels/discrete/conditional_models.py405except KeyError:CODE
HIGHstatsmodels/discrete/tests/test_truncated_model.py552except ImportError:CODE
HIGHstatsmodels/discrete/tests/test_predict.py413except AttributeError:CODE
HIGHstatsmodels/datasets/utils.py81except Exception:CODE
HIGHstatsmodels/datasets/utils.py222except Exception:CODE
HIGHstatsmodels/iolib/summary.py379except (AttributeError, NotImplementedError):CODE
HIGHstatsmodels/iolib/table.py813except AttributeError:CODE
HIGHstatsmodels/iolib/table.py992except AttributeError:CODE
HIGHstatsmodels/iolib/table.py997except AttributeError:CODE
HIGHstatsmodels/iolib/table.py284except AttributeError:CODE
HIGHstatsmodels/iolib/summary2.py400except (AttributeError, KeyError, NotImplementedError):CODE
HIGHstatsmodels/iolib/tests/test_pickle.py35except OSError:CODE
HIGHstatsmodels/iolib/tests/test_table_econpy.py63except TypeError:CODE
HIGHstatsmodels/imputation/tests/test_mice.py16except ImportError:CODE
HIGHstatsmodels/formula/_manager.py52except ImportError:CODE
HIGHstatsmodels/formula/tests/test_manager.py17except ImportError:CODE
HIGHstatsmodels/formula/tests/test_manager.py24except ImportError:CODE
HIGHstatsmodels/genmod/generalized_estimating_equations.py595except ValueError:CODE
HIGH…tsmodels/genmod/tests/gee_gaussian_simulation_check.py245except TypeError:CODE
HIGHstatsmodels/tsa/x13.py98except OSError:CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1771except ImportError:CODE
HIGHstatsmodels/tsa/statespace/tests/test_structural.py117except ImportError:CODE
HIGHstatsmodels/tsa/regime_switching/markov_switching.py1581except Exception: # FIXME: catch something specificCODE
HIGHstatsmodels/tsa/tests/test_x13.py247except OSError:CODE
HIGHstatsmodels/tsa/tests/test_exponential_smoothing.py623except ValueError:CODE
HIGHstatsmodels/tsa/base/tests/test_tsa_indexes.py66except AttributeError:CODE
HIGHstatsmodels/graphics/correlation.py118except AttributeError:CODE
HIGHstatsmodels/graphics/tests/test_tsaplots.py35except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_mosaicplot.py17except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_regressionplots.py28except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_regressionplots.py113except AttributeError:CODE
HIGHstatsmodels/graphics/tests/test_gofplots.py762except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_gofplots.py26except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_gofplots.py423except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_gofplots.py511except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_functional.py17except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_dotplot.py9except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_boxplots.py9except ImportError:CODE
HIGHstatsmodels/graphics/tests/test_factorplots.py10except ImportError:CODE
HIGHstatsmodels/duration/tests/test_survfunc.py17except ImportError:CODE
HIGHstatsmodels/base/wrapper.py27except AttributeError:CODE
HIGHstatsmodels/base/wrapper.py32except AttributeError:CODE
HIGHstatsmodels/base/model.py151except KeyError: # panel already pops keys in data handlingCODE
HIGHstatsmodels/base/model.py2552except AttributeError:CODE
HIGHstatsmodels/base/model.py2568except AttributeError:CODE
5 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.py772CODE
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.py156CODE
LOWstatsmodels/multivariate/multivariate_ols.py286CODE
LOWstatsmodels/multivariate/multivariate_ols.py459CODE
LOWstatsmodels/multivariate/multivariate_ols.py622CODE
LOWstatsmodels/multivariate/manova.py78CODE
LOWstatsmodels/multivariate/pca.py335CODE
LOWstatsmodels/multivariate/factor_rotation/_wrappers.py17CODE
LOW…tsmodels/multivariate/factor_rotation/_gpa_rotation.py29CODE
LOWstatsmodels/discrete/discrete_model.py1769CODE
LOWstatsmodels/discrete/discrete_model.py2477CODE
LOWstatsmodels/discrete/discrete_model.py4030CODE
LOWstatsmodels/discrete/discrete_model.py4885CODE
LOWstatsmodels/discrete/discrete_margins.py207CODE
LOWstatsmodels/discrete/diagnostic.py174CODE
LOWstatsmodels/discrete/count_model.py461CODE
LOWstatsmodels/discrete/truncated_model.py302CODE
LOWstatsmodels/discrete/truncated_model.py1568CODE
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.py746CODE
LOWstatsmodels/robust/covariance.py599CODE
LOWstatsmodels/robust/covariance.py1009CODE
LOWstatsmodels/robust/covariance.py1134CODE
LOWstatsmodels/robust/covariance.py1454CODE
LOWstatsmodels/robust/covariance.py1920CODE
LOWstatsmodels/robust/covariance.py2054CODE
LOWstatsmodels/robust/covariance.py2261CODE
LOWstatsmodels/robust/covariance.py2522CODE
LOWstatsmodels/robust/covariance.py2740CODE
LOWstatsmodels/robust/resistant_linear_model.py143CODE
LOWstatsmodels/robust/robust_linear_model.py223CODE
LOWstatsmodels/robust/scale.py704CODE
LOWstatsmodels/robust/scale.py821CODE
LOWstatsmodels/nonparametric/smoothers_lowess_old.py136CODE
LOWstatsmodels/nonparametric/kde.py346CODE
LOWstatsmodels/nonparametric/kde.py535CODE
LOWstatsmodels/nonparametric/kde.py98CODE
LOWstatsmodels/tools/rootfinding.py56CODE
LOWstatsmodels/tools/docstring.py726CODE
LOWstatsmodels/tools/_decorators.py82CODE
LOWstatsmodels/tools/validation/validation.py42CODE
LOWstatsmodels/multivariate/pca.py213CODE
LOWstatsmodels/multivariate/factor.py161CODE
LOWstatsmodels/discrete/discrete_model.py280CODE
LOWstatsmodels/discrete/discrete_model.py613CODE
LOWstatsmodels/discrete/discrete_model.py652CODE
LOWstatsmodels/discrete/discrete_model.py880CODE
LOWstatsmodels/discrete/discrete_model.py1260CODE
LOWstatsmodels/discrete/discrete_model.py1489CODE
LOWstatsmodels/discrete/discrete_model.py2069CODE
LOWstatsmodels/discrete/discrete_model.py2148CODE
LOWstatsmodels/discrete/discrete_model.py4100CODE
LOWstatsmodels/discrete/discrete_model.py4187CODE
LOWstatsmodels/discrete/discrete_model.py4715CODE
LOWstatsmodels/discrete/discrete_model.py4812CODE
LOWstatsmodels/discrete/discrete_model.py5272CODE
LOWstatsmodels/discrete/discrete_model.py5248CODE
LOWstatsmodels/discrete/discrete_model.py5359CODE
LOWstatsmodels/discrete/discrete_model.py5942CODE
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 Boilerplate126 hits · 126 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.py55__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.py274__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
66 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
HIGH⚡examples/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.py51 except Exception as exc:CODE
MEDIUMstatsmodels/nonparametric/kde.py48def _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.py1265 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.py1887 except Exception as exc:CODE
LOW⚡statsmodels/tsa/statespace/mlemodel.py5577 except Exception: # FIXME: catch something specificSTRING
LOW⚡statsmodels/tsa/statespace/mlemodel.py5581 except Exception: # FIXME: catch something specificSTRING
LOW⚡statsmodels/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
LOW⚡statsmodels/tsa/arima/tests/test_model.py502 except Exception as exc:STRING
LOW⚡statsmodels/tsa/arima/tests/test_model.py512 except Exception as exc:STRING
LOWstatsmodels/tsa/ardl/model.py1220 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
LOW⚡statsmodels/tsa/exponential_smoothing/base.py845 except Exception: # FIXME: catch something specificSTRING
LOW⚡statsmodels/tsa/exponential_smoothing/base.py849 except Exception: # FIXME: catch something specificSTRING
LOW⚡statsmodels/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.py249 except Exception as exc:CODE
LOWstatsmodels/graphics/gofplots.py281 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.py1625 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
LOW⚡examples/python/statespace_forecasting.py201# Step 2: produce one-step-ahead forecastsCOMMENT
LOW⚡examples/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
LOW⚡examples/python/statespace_forecasting.py256# Step 2: produce one-step-ahead forecastsCOMMENT
LOW⚡examples/python/statespace_forecasting.py259# Step 3: compute root mean square forecasting errorCOMMENT
LOW⚡statsmodels/tsa/statespace/tools.py897 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/statespace/tools.py902 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOW⚡statsmodels/tsa/statespace/tools.py940 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/statespace/tools.py946 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOW⚡statsmodels/tsa/statespace/tools.py1476 # Step 1: convert matrices from the space of stationarySTRING
LOW⚡statsmodels/tsa/statespace/tools.py1482 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOW⚡statsmodels/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
LOW⚡statsmodels/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
LOW⚡examples/python/statespace_forecasting.py201# Step 2: produce one-step-ahead forecastsCOMMENT
LOW⚡examples/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
LOW⚡examples/python/statespace_forecasting.py256# Step 2: produce one-step-ahead forecastsCOMMENT
LOW⚡examples/python/statespace_forecasting.py259# Step 3: compute root mean square forecasting errorCOMMENT
LOW⚡statsmodels/tsa/statespace/tools.py897 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/statespace/tools.py902 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOW⚡statsmodels/tsa/statespace/tools.py940 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/statespace/tools.py946 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOW⚡statsmodels/tsa/statespace/tools.py1476 # Step 1: convert matrices from the space of stationarySTRING
LOW⚡statsmodels/tsa/statespace/tools.py1482 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOW⚡statsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOW⚡statsmodels/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
LOW⚡statsmodels/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.py553 # 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.py2707 # 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.py34# 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
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOW.github/workflows/ai-policy-check.yml63 problem = "placeholder";CODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWstatsmodels/tools/tests/test_web.py26 def test_function(self):CODE