Repository Analysis

statsmodels/statsmodels

Statsmodels: statistical modeling and econometrics in Python

11.9 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of statsmodels/statsmodels, a Python project with 11,509 GitHub stars. SynthScan v2.0 examined 495,030 lines of code across 1535 source files, recording 4098 pattern matches distributed across 23 syntactic categories. The overall adjusted score of 11.9 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).

11.9
Adjusted Score
11.9
Raw Score
100%
Time Factor
2026-07-12
Last Push
11.5K
Stars
Python
Language
495.0K
Lines of Code
1.5K
Files
4.1K
Pattern Hits
2026-07-14
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 316MEDIUM 459LOW 3321

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 4098 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 Identifiers982 hits · 918 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py650 def get_returns_not_on_nested_functions(node):CODE
LOWtools/validate_docstrings.py686 def mentioned_private_classes(self):CODE
LOWexamples/python/lowess.py64def lowess_with_confidence_bounds(CODE
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py493def plot_coefficients_by_equation(states):CODE
LOWstatsmodels/conftest.py158def pytest_collection_modifyitems(config, items):CODE
LOWstatsmodels/conftest.py195def check_global_randomstate_usage(request):CODE
LOWstatsmodels/robust/tools.py502def _convert_to_dict_mvmean_effs(eff_mean=True):CODE
LOWstatsmodels/robust/covariance.py51def _naive_ledoit_wolf_shrinkage(x, center):STRING
LOWstatsmodels/robust/covariance.py77def coef_normalize_cov_truncated(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py119def _coef_normalize_cov_truncated_(frac, k_vars):STRING
LOWstatsmodels/robust/covariance.py792def cov_tyler_pairs_regularized(CODE
LOWstatsmodels/robust/tests/test_rlm.py328def test_rlm_start_values_errors():CODE
LOWstatsmodels/robust/tests/test_scale.py445def test_scale_trimmed_approx():CODE
LOWstatsmodels/nonparametric/kernels_asymmetric.py636def kernel_pdf_recipinvgauss_(x, sample, bw):STRING
LOWstatsmodels/nonparametric/kernels.py165def aitchison_aitken_convolution(h, Xi, Xj):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py50 def test_check_is_fit_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py54 def test_non_weighted_fft_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py64 def test_wrong_weight_length_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py74 def test_non_gaussian_fft_exception(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py352 def test_norm_constant_calculation(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py399 def test_check_is_fit_ok_with_custom_bandwidth(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py406 def test_check_is_fit_ok_with_standard_custom_bandwidth(self):CODE
LOWstatsmodels/nonparametric/tests/test_kde.py418 def test_check_is_fit_ok_with_float_bandwidth(self, fft):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py284 def test_continuousdata_lc_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py309 def test_continuousdata_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py333 def test_continuous_mfx_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py384 def test_mfx_nonlinear_ll_cvls(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py413 def test_continuous_cvls_efficient(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py482 def test_significance_continuous(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py509 def test_significance_seed_legacy(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py594 def test_significance_seed_thread_safe(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py626 def test_significance_discrete(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py656 def test_user_specified_kernel(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py682 def test_censored_user_specified_kernel(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py709 def test_efficient_user_specificed_bw(self):CODE
LOW…tsmodels/nonparametric/tests/test_kernel_regression.py724 def test_censored_efficient_user_specificed_bw(self):CODE
LOWstatsmodels/nonparametric/tests/test_bandwidths.py30 def test_calculate_bandwidth_gaussian(self):CODE
LOWstatsmodels/nonparametric/tests/test_bandwidths.py42 def test_calculate_normal_reference_bandwidth(self):CODE
LOWstatsmodels/nonparametric/tests/test_bandwidths.py51 def test_calculate_normal_reference_constant(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py271 def test_weighted_pdf_non_fft(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py296 def test_all_samples_same_location_bw(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py415 def test_continuous_cvls_efficient(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py435 def test_continuous_cvml_efficient(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py476 def test_efficient_user_specified_bw(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py572 def test_continuous_normal_ref(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py632 def test_continuous_cvml_efficient(self):CODE
LOWstatsmodels/nonparametric/tests/test_kernel_density.py659 def test_efficient_user_specified_bw(self):CODE
LOWstatsmodels/tools/docstring.py90 def read_to_next_unindented_line(self):CODE
LOWstatsmodels/tools/tests/test_data.py47def test_as_array_with_name_series():CODE
LOWstatsmodels/tools/tests/test_data.py54def test_as_array_with_name_array():CODE
LOWstatsmodels/tools/tests/test_docstring_helpers.py56def test_dict_deprecate_kwarg(key):CODE
LOWstatsmodels/tools/tests/test_docstring_helpers.py62def test_missing_deprecate_kwarg(key):CODE
LOWstatsmodels/tools/tests/test_docstring_helpers.py69def test_callable_deprecate_kwarg(x):CODE
LOWstatsmodels/tools/tests/test_tools.py82 def test_add_constant_dataframe(self):CODE
LOWstatsmodels/tools/tests/test_tools.py132 def test_extendedpinv_singular(self):CODE
LOWstatsmodels/tools/tests/test_tools.py200def test_pandas_const_series_prepend():CODE
LOWstatsmodels/tools/tests/test_tools.py215def test_pandas_const_df_prepend():CODE
LOWstatsmodels/tools/tests/test_testing.py11def check_params_table_classes(attribute, bunch_type):CODE
LOWstatsmodels/tools/validation/tests/test_validation.py122 def test_right_squeeze_and_pad(self):CODE
LOWstatsmodels/tools/validation/tests/test_validation.py239def test_wrap_pandas_append_non_string():CODE
922 more matches not shown…
Cross-Language Confusion196 hits · 891 pts
SeverityFileLineSnippetContext
HIGHstatsmodels/tools/grouputils.py432 if not test.index.equals(test_sorted.index):CODE
HIGHstatsmodels/tools/tests/test_grouputils.py36 assert not index.equals(self.grouping.index)CODE
HIGHstatsmodels/tools/tests/test_grouputils.py40 assert not sorted_data.equals(self.data)CODE
HIGHstatsmodels/tools/tests/test_grouputils.py55 assert not sorted_data.equals(series)CODE
HIGHstatsmodels/datasets/utils.py106 if data.index.equals(Index(lrange(1, len(data) + 1))):CODE
HIGHstatsmodels/imputation/mice.py311 ix_obs = np.flatnonzero(~null)STRING
HIGHstatsmodels/imputation/mice.py312 ix_miss = np.flatnonzero(null)STRING
HIGHstatsmodels/genmod/generalized_linear_model.py2032 self._endog, self.null, self._var_weights, self._freq_weightsCODE
HIGHstatsmodels/genmod/generalized_linear_model.py2042 self.null,CODE
HIGHstatsmodels/genmod/tests/test_glm.py1067 assert_allclose(mod1.null, mod2.null, rtol=1e-10)STRING
HIGHstatsmodels/tsa/statespace/tools.py361 if s.columns.equals(pd.Index([None])):STRING
HIGHstatsmodels/tsa/statespace/tools.py367 if axis == 0 and not base_columns.equals(s_columns):STRING
HIGHstatsmodels/tsa/statespace/tools.py370 elif axis == 1 and not series[0].index.equals(s.index):STRING
HIGHstatsmodels/tsa/statespace/dynamic_factor_mq.py1359 endog_mean.index.equals(pd.Index(endog_names))):STRING
HIGHstatsmodels/tsa/statespace/dynamic_factor_mq.py1366 endog_std.index.equals(pd.Index(endog_names))):STRING
HIGHstatsmodels/tsa/statespace/mlemodel.py74 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.py2811 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2819 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2829 assert_(mod._index.equals(endog.index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2841 assert_(mod._index.equals(pd.RangeIndex(start=0, stop=len(values) - 1)))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2842 assert_(mod.data.row_labels.equals(index[1:]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_sarimax.py2156 assert_equal(out.index.equals(pd.Index(["a"])), True)CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1601 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1608 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1615 assert_(mod._index.equals(mod_base._index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1690 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1691 assert_(actual.columns.equals(desired.columns))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1706 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1724 assert_(actual.index.equals(desired.index))CODE
HIGH…smodels/tsa/statespace/tests/test_dynamic_factor_mq.py1725 assert_(actual.columns.equals(desired.columns))CODE
HIGHstatsmodels/tsa/statespace/tests/test_varmax.py963 assert out.index.equals(pd.Index(["a"]))CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1247 assert states.predicted.index.equals(predicted_ix)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1248 assert states.predicted.columns.equals(cols)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1250 assert states.predicted_cov.index.equals(predicted_cov_ix)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1251 assert states.predicted.columns.equals(cols)CODE
HIGHstatsmodels/tsa/statespace/tests/test_mlemodel.py1254 assert states.filtered.index.equals(ix)CODE
136 more matches not shown…
Unused Imports909 hits · 784 pts
SeverityFileLineSnippetContext
LOWdocs/source/conf.py62CODE
LOWexamples/python/statespace_local_linear_trend.py59CODE
LOWexamples/python/statespace_local_linear_trend.py182CODE
LOWexamples/python/statespace_local_linear_trend.py183CODE
LOWexamples/python/statespace_local_linear_trend.py185CODE
LOWexamples/python/tsa_dates.py18CODE
LOWexamples/python/tsa_dates.py34CODE
LOWexamples/python/statespace_fixed_params.py25CODE
LOWexamples/python/statespace_fixed_params.py28CODE
LOWexamples/python/statespace_varmax.py24CODE
LOWexamples/python/statespace_varmax.py25CODE
LOWexamples/python/contrasts.py16CODE
LOWexamples/python/treatment_effect.py44CODE
LOWexamples/python/statespace_structural_harvey_jaeger.py35CODE
LOWexamples/python/statespace_structural_harvey_jaeger.py39CODE
LOWexamples/python/statespace_structural_harvey_jaeger.py39CODE
LOWexamples/python/postestimation_poisson.py63CODE
LOWexamples/python/postestimation_poisson.py64CODE
LOWexamples/python/postestimation_poisson.py68CODE
LOWexamples/python/interactions_anova.py21CODE
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py15CODE
LOWexamples/python/count_hurdle.py56CODE
LOWexamples/python/count_hurdle.py57CODE
LOWexamples/python/count_hurdle.py58CODE
LOWexamples/python/count_hurdle.py58CODE
LOWexamples/python/count_hurdle.py58CODE
LOWexamples/python/count_hurdle.py63CODE
LOWexamples/python/count_hurdle.py63CODE
LOWexamples/python/count_hurdle.py63CODE
LOWexamples/python/count_hurdle.py69CODE
LOWexamples/python/count_hurdle.py69CODE
LOWexamples/python/count_hurdle.py69CODE
LOWexamples/python/discrete_choice_overview.py15CODE
LOWexamples/python/multivariate_ls.py41CODE
LOWexamples/python/multivariate_ls.py45CODE
LOWexamples/python/multivariate_ls.py46CODE
LOWexamples/python/mixed_lm_example.py16CODE
LOWexamples/python/statespace_forecasting.py27CODE
LOWexamples/python/mstl_decomposition.py52CODE
LOWexamples/python/mstl_decomposition.py60CODE
LOWexamples/python/statespace_sarimax_pymc3.py91CODE
LOWexamples/python/stationarity_detrending_adf_kpss.py28CODE
LOWexamples/python/stationarity_detrending_adf_kpss.py29CODE
LOWexamples/python/statespace_custom_models.py758CODE
LOWexamples/python/stats_poisson.py35CODE
LOWexamples/python/stats_poisson.py36CODE
LOWexamples/python/stats_poisson.py37CODE
LOWexamples/python/stats_poisson.py38CODE
LOWexamples/python/statespace_concentrated_scale.py16CODE
LOWexamples/python/metaanalysis1.py45CODE
LOWexamples/python/metaanalysis1.py45CODE
LOWexamples/python/metaanalysis1.py47CODE
LOWexamples/python/metaanalysis1.py50CODE
LOWexamples/python/metaanalysis1.py50CODE
LOWexamples/python/metaanalysis1.py50CODE
LOWexamples/python/statespace_sarimax_stata.py46CODE
LOWexamples/python/markov_autoregression.py26CODE
LOWexamples/python/statespace_cycles.py35CODE
LOWexamples/python/statespace_cycles.py36CODE
LOWexamples/python/rolling_ls.py30CODE
849 more matches not shown…
Over-Commented Block619 hits · 593 pts
SeverityFileLineSnippetContext
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
LOWdocs/source/conf.py1#COMMENT
LOWdocs/source/conf.py141COMMENT
LOWdocs/source/conf.py241# The name for this set of Sphinx documents. If None, it defaults toCOMMENT
LOWdocs/source/conf.py281# html_additional_pages = {}COMMENT
LOWdocs/source/conf.py301# If true, an OpenSearch description file will be output, and all pages willCOMMENT
LOWdocs/source/conf.py341# If true, show page references after internal links.COMMENT
LOWdocs/source/conf.py381epub_copyright = (COMMENT
LOWdocs/source/conf.py401# The format is a list of tuples containing the path and title.COMMENT
LOWexamples/python/statespace_local_linear_trend.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/statespace_local_linear_trend.py21# $$COMMENT
LOWexamples/python/statespace_local_linear_trend.py41#COMMENT
LOWexamples/python/statespace_local_linear_trend.py61# To take advantage of the existing infrastructure, including KalmanCOMMENT
LOWexamples/python/statespace_local_linear_trend.py81# statespace matrices.COMMENT
LOWexamples/python/statespace_local_linear_trend.py101# the model is stationary (e.g. an ARMA model), `initialize_stationary` canCOMMENT
LOWexamples/python/statespace_local_linear_trend.py261# Durbin, James, and Siem Jan Koopman. 2012.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#COMMENT
LOWexamples/python/formulas.py81COMMENT
LOWexamples/python/formulas.py101COMMENT
LOWexamples/python/pca_fertility_factors.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/pca_fertility_factors.py81COMMENT
LOWexamples/python/exponential_smoothing.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/exponential_smoothing.py301 "Figure 7.5: Forecasting livestock, sheep in Asia: comparing forecasting performance of non-seasonal methods."COMMENT
LOWexamples/python/exponential_smoothing.py461states1[["seasonal"]].plot(ax=ax3)COMMENT
LOWexamples/python/glm.py21plt.rc("font", size=14)COMMENT
LOWexamples/python/statespace_fixed_params.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/statespace_fixed_params.py41# It is well known (e.g. Harvey and Jaeger [1993]) that the HP filterCOMMENT
LOWexamples/python/statespace_fixed_params.py61# \begin{aligned}COMMENT
LOWexamples/python/statespace_fixed_params.py81# The parameters of the unobserved components model (UCM) are written as:COMMENT
LOWexamples/python/statespace_fixed_params.py121# However, unobserved components models are more flexible than the HPCOMMENT
LOWexamples/python/statespace_fixed_params.py141COMMENT
LOWexamples/python/glm_weights.py61np.bincount(data["affairs"].astype(int))COMMENT
LOWexamples/python/glm_weights.py121COMMENT
LOWexamples/python/glm_weights.py201# ``df_resid``.COMMENT
LOWexamples/python/glm_weights.py261#COMMENT
LOWexamples/python/glm_weights.py301pd.DataFrame(COMMENT
LOWexamples/python/statespace_varmax.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/statespace_varmax.py61# argument).COMMENT
LOWexamples/python/autoregressive_distributed_lag.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py21# the endogenous variable and the exogenous variables. ARDL models are alsoCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py41#COMMENT
LOWexamples/python/autoregressive_distributed_lag.py61import seaborn as snsCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py121# `model` on `sel_res` contains the model `ARDL` specification which can beCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py161# 0. The selected AR lags vary more, although all of the best specificationsCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py181# would match the specification below if a NumPy array was used.COMMENT
LOWexamples/python/autoregressive_distributed_lag.py221 data[["lry", "ibo", "ide"]],COMMENT
LOWexamples/python/autoregressive_distributed_lag.py241# + \underset{\text{Autoregressive}}{\underbrace{\sum_{p=1}^P \phi_pCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py421# integration in the $X$ variables. If it is above the upper bound, thenCOMMENT
LOWexamples/python/autoregressive_distributed_lag.py441# 5. Constant and trend included in the model, neither included in theCOMMENT
LOWexamples/python/plots_boxplots.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/contrasts.py1#!/usr/bin/env pythonCOMMENT
LOWexamples/python/contrasts.py21# A categorical variable of K categories, or levels, usually enters aCOMMENT
LOWexamples/python/kernel_density.py1#!/usr/bin/env pythonCOMMENT
559 more matches not shown…
Cross-File Repetition102 hits · 510 pts
SeverityFileLineSnippetContext
HIGHstatsmodels/nonparametric/kernel_regression.py0multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] raSTRING
HIGHstatsmodels/sandbox/nonparametric/kernel_extras.py0multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] raSTRING
HIGHstatsmodels/nonparametric/kernel_density.py0multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] raSTRING
HIGHstatsmodels/discrete/discrete_model.py0derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarraySTRING
HIGHstatsmodels/discrete/count_model.py0derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarraySTRING
HIGHstatsmodels/genmod/generalized_linear_model.py0derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarraySTRING
HIGHstatsmodels/othermod/betareg.py0derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarraySTRING
HIGHstatsmodels/discrete/discrete_model.py0derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated returnSTRING
HIGHstatsmodels/discrete/count_model.py0derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated returnSTRING
HIGHstatsmodels/othermod/betareg.py0derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated returnSTRING
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 proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/sandbox/regression/gmm.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/genmod/qif.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/genmod/generalized_linear_model.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/regression/quantile_regression.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/duration/hazard_regression.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/base/model.py0summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname STRING
HIGHstatsmodels/datasets/template_data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/engel/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/heart/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/fertility/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/cancer/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/fair/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/co2/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/strikes/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/statecrime/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/modechoice/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
HIGHstatsmodels/datasets/nile/data.py0load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more informSTRING
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.py0load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information.STRING
HIGHstatsmodels/datasets/anes96/data.py0load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information.STRING
HIGHstatsmodels/datasets/copper/data.py0load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information.STRING
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/miscmodels/count.py0maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model aSTRING
HIGHstatsmodels/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/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
HIGHstatsmodels/miscmodels/count.py0loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- thSTRING
HIGHstatsmodels/examples/ex_generic_mle_tdist.py0loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- thSTRING
HIGHstatsmodels/examples/ex_generic_mle_t.py0loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- thSTRING
HIGHstatsmodels/sandbox/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
HIGHstatsmodels/sandbox/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
HIGHstatsmodels/sandbox/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
HIGHstatsmodels/sandbox/distributions/extras.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGH…atsmodels/sandbox/distributions/transform_functions.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGHstatsmodels/sandbox/distributions/transformed.py0class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, iSTRING
HIGHstatsmodels/examples/ex_kernel_semilinear_dgp.py0created on sun jan 06 09:50:54 2013 author: josef perktoldSTRING
HIGHstatsmodels/examples/ex_kernel_singleindex_dgp.py0created on sun jan 06 09:50:54 2013 author: josef perktoldSTRING
42 more matches not shown…
AI Slop Vocabulary180 hits · 452 pts
SeverityFileLineSnippetContext
MEDIUMexamples/python/stl_decomposition.py71# Setting `robust` uses a data-dependent weighting function that re-COMMENT
MEDIUMexamples/python/stl_decomposition.py73# robust estimation allows the model to tolerate larger errors that areCOMMENT
MEDIUMexamples/python/stl_decomposition.py85# Next, we estimate the model with and without robust weighting. TheCOMMENT
MEDIUMexamples/python/stl_decomposition.py87# 2008. The non-robust estimate places equal weights on all observations andCOMMENT
LOWexamples/python/formulas.py36# Alternatively, you can just use the `formula` namespace of the mainCOMMENT
MEDIUMexamples/python/treatment_effect.py115# The doubly robust estimators `aipw`, `aipw-wls`, `ipw-ra` include bothCOMMENT
MEDIUMexamples/python/treatment_effect.py158# `ipw` for example regression adjustment `ra` and double robust `ipw_ra`.COMMENT
LOWexamples/python/statespace_news.py125# just call the `forecast` method with the number of forecasts you want toCOMMENT
LOWexamples/python/statespace_news.py511# For the updated dataset, we'll just add in theCOMMENT
LOWexamples/python/statespace_news.py633# just call the `summary_details` method directly.COMMENT
MEDIUMexamples/python/gee_score_test_simulation.py14# This notebook uses simulation to demonstrate robust GEE score tests.COMMENT
MEDIUMexamples/python/gee_score_test_simulation.py16# about the mean structure. The tests are robust to miss-specification ofCOMMENT
MEDIUMexamples/python/gee_score_test_simulation.py90# The GEE score test is robust to dependence and overdispersion. Here weCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py360 # facilitate comparisonCOMMENT
MEDIUMexamples/python/robust_models_0.py59# See ``help(sm.RLM.fit)`` for more options and ``module sm.robust.scale``COMMENT
MEDIUMexamples/python/robust_models_0.py98# Draw a plot to compare OLS estimates to the robust estimates:COMMENT
MEDIUMexamples/python/robust_models_0.py135# Draw a plot to compare OLS estimates to the robust estimates:COMMENT
MEDIUMexamples/python/postestimation_poisson.py100# form which is robust to unspecified heteroscedasticity or serial orCOMMENT
MEDIUMexamples/python/postestimation_poisson.py134# correlation robust covariance type.COMMENT
MEDIUMexamples/python/postestimation_poisson.py135# It currently uses the same implementation and defaults for the robustCOMMENT
MEDIUMexamples/python/postestimation_poisson.py143# corrections for heteroscedasticity and correlation robust score tests.COMMENT
MEDIUMexamples/python/postestimation_poisson.py386# generalized leverage instead of the diagonal of the hat matrix in linearCOMMENT
MEDIUMexamples/python/linear_regression_diagnostics_plots.py52# d. leverageCOMMENT
MEDIUMexamples/python/linear_regression_diagnostics_plots.py465# 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.py29# * The robust estimates $\hat{\beta}$ are computed by the iteratively re-COMMENT
MEDIUMexamples/python/robust_models_1.py142# * The mean is not a robust estimator of locationCOMMENT
MEDIUMexamples/python/robust_models_1.py148# * The median, on the other hand, is a robust estimator with a breakdownCOMMENT
MEDIUMexamples/python/robust_models_1.py156# * The standard deviation is not robustCOMMENT
MEDIUMexamples/python/robust_models_1.py189# Another robust estimator of scale is the Interquartile Range (IQR)COMMENT
MEDIUMexamples/python/robust_models_1.py204# The IQR is less robust than the MAD in the sense that it has a lowerCOMMENT
MEDIUMexamples/python/robust_models_1.py210# Yet another robust estimator of scale is the $Q_n$ estimator, introducedCOMMENT
MEDIUMexamples/python/robust_models_1.py372# * Why? Because M-estimators are not robust to leverage points.COMMENT
MEDIUMexamples/python/robust_models_1.py372# * Why? Because M-estimators are not robust to leverage points.COMMENT
MEDIUMexamples/python/influence_glm_logit.py69# and large Cook's distance, but not a large leverage. Observation 13 hasCOMMENT
MEDIUMexamples/python/influence_glm_logit.py70# the largest leverage but only small Cook's distance and not a largeCOMMENT
MEDIUMexamples/python/mstl_decomposition.py33# (e.g., `robust`, `seasonal_deg`, etc.). See [STL docs](https://www.statsmoCOMMENT
MEDIUMexamples/python/regression_plots.py49# leverage of each observation as measured by the hat matrix.COMMENT
MEDIUMexamples/python/regression_plots.py76# and reporter have low leverage but a large residual. <br />COMMENT
MEDIUMexamples/python/regression_plots.py77# RR.engineer has small residual and large leverage. Conductor andCOMMENT
MEDIUMexamples/python/regression_plots.py78# minister have both high leverage and large residuals, and, <br />COMMENT
MEDIUMexamples/python/regression_plots.py248# Closely related to the influence_plot is the leverage-resid<sup>2</sup>COMMENT
MEDIUMexamples/python/regression_plots.py263# ### Using robust regression to correct for outliers.COMMENT
MEDIUMexamples/python/regression_plots.py266# M-estimators are not robust to leverage points. MM-estimators should doCOMMENT
MEDIUMexamples/python/regression_plots.py266# M-estimators are not robust to leverage points. MM-estimators should doCOMMENT
MEDIUMexamples/python/regression_plots.py281# data=dta, M=sm.robust.norms.TukeyBiweight()).fit(conv="weights")COMMENT
MEDIUMexamples/python/regression_diagnostics.py119# Useful information on leverage can also be plotted:COMMENT
MEDIUMexamples/python/rolling_ls.py131# estimator) and `'HC0'` which is White's heteroskedasticity robustCOMMENT
MEDIUMexamples/incomplete/wls_extended.py72# compare with robust regression,COMMENT
MEDIUMexamples/incomplete/wls_extended.py226# ..robust standard errors (with ols)STRING
MEDIUMstatsmodels/robust/covariance.py1r"""robust location, scatter and covariance estimatorsCODE
MEDIUMstatsmodels/robust/covariance.py1061 """Iterative robust covariance estimation using weights.STRING
MEDIUMstatsmodels/robust/covariance.py1150 """compute some robust starting covariancesSTRING
MEDIUMstatsmodels/robust/covariance.py1289 # maybe also allow str func_scale for robust.scale, e.g. for notCOMMENT
MEDIUMstatsmodels/robust/covariance.py1347 """Starting sets for deterministic robust covariance estimators.STRING
MEDIUMstatsmodels/robust/resistant_linear_model.py76 # data for robust mahalanobis distance of starting setsCOMMENT
MEDIUMstatsmodels/robust/tests/test_rlm.py394 # than the robust scale estimate, so the recorded series did not match theCOMMENT
MEDIUMstatsmodels/robust/tests/test_rlm.py395 # robust scale recomputed from each iteration's parameters.COMMENT
MEDIUMstatsmodels/robust/tests/test_rlm.py400 # psi=psi.huber, k=1.345, scale.est="MAD"): robust scale s = 2.4407COMMENT
120 more matches not shown…
Self-Referential Comments158 hits · 376 pts
SeverityFileLineSnippetContext
MEDIUMtools/releasing/release_note.py143# Create a What's New Dictionary to automatically populate the templateCOMMENT
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.py152# Define a custom function:COMMENT
MEDIUMexamples/python/plots_boxplots.py134# Create a violin plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py155# Create a bean plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py176# Create a jitter plot.COMMENT
MEDIUMexamples/python/plots_boxplots.py198# Create an asymmetrical jitter plot.COMMENT
MEDIUMexamples/python/kernel_density.py222# Create a figureCOMMENT
MEDIUMexamples/python/kernel_density.py228 # Initialize the kernel objectCOMMENT
MEDIUMexamples/python/kernel_density.py236 # Create a subplot, set the titleCOMMENT
MEDIUMexamples/python/kernel_density.py257# Create a figureCOMMENT
MEDIUMexamples/python/kernel_density.py263 # Create a subplot, set the titleCOMMENT
MEDIUMexamples/python/kernel_density.py270 # Create the plotCOMMENT
MEDIUMexamples/python/statespace_news.py124# Creating the forecasts from the results object `res` is easy - you canCOMMENT
MEDIUMexamples/python/statespace_news.py188# Create a new results object by passing the new observations to theCOMMENT
MEDIUMexamples/python/statespace_news.py583# Create the news resultsCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py224# Create the modelCOMMENT
MEDIUMexamples/python/statespace_dfm_coincident.py806# Create the modelCOMMENT
MEDIUMexamples/python/theta-model.py65# This module is based on:COMMENT
MEDIUMexamples/python/statespace_tvpvar_mcmc_cfa.py390 # 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.py52# ## Create a new sample of explanatory variables Xnew, predict and plotCOMMENT
MEDIUMexamples/python/mstl_decomposition.py72# ### Create a toy dataset with multiple seasonalitiesCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc3.py108# Define the inflation series that we'll use in analysisCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc3.py129# Create an SARIMAX model instance - here we use it to estimateCOMMENT
MEDIUMstatsmodels/nonparametric/kernel_regression.py219 # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ijCOMMENT
MEDIUMstatsmodels/nonparametric/kernel_regression.py692 # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ijCOMMENT
MEDIUMstatsmodels/nonparametric/tests/test_lowess.py233 # Create a curve that is easy to fit at first but getsCOMMENT
MEDIUMstatsmodels/datasets/utils.py251# The below function were taken from sklearnCOMMENT
MEDIUMstatsmodels/sandbox/panel/panelmod.py171 # Initialize pandas objects.COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py1573 # Create the full d matrix given all known dij valsCOMMENT
MEDIUMstatsmodels/imputation/mice.py586 # Create an indicator matrix for missing values.STRING
MEDIUMstatsmodels/examples/example_functional_plots.py20# Create a functional boxplot:COMMENT
MEDIUMstatsmodels/examples/example_functional_plots.py40# Create a rainbow plot:COMMENT
MEDIUMstatsmodels/examples/example_enhanced_boxplots.py25# Create a violin plot.COMMENT
MEDIUMstatsmodels/examples/example_enhanced_boxplots.py46# Create a bean plot.COMMENT
MEDIUMstatsmodels/examples/example_enhanced_boxplots.py67# Create a jitter plot.COMMENT
MEDIUMstatsmodels/examples/example_enhanced_boxplots.py89# Create an asymmetrical jitter plot.COMMENT
MEDIUMstatsmodels/examples/l1_demo/demo.py381 # Create the probability of entering the different classes,STRING
MEDIUMstatsmodels/examples/l1_demo/demo.py387 # Create the endogSTRING
MEDIUMstatsmodels/examples/l1_demo/demo.py402 # Create the probability of entering the different classes,STRING
MEDIUMstatsmodels/examples/l1_demo/demo.py406 # Create the endogSTRING
MEDIUMstatsmodels/examples/l1_demo/demo.py427 # Create the noiseless exogSTRING
MEDIUMstatsmodels/genmod/cov_struct.py1440 # Create the pairs and order themCOMMENT
MEDIUM…atsmodels/genmod/tests/gee_poisson_simulation_check.py81 # Create an exog matrix so that E[Y] = log(dot(exog1, params))COMMENT
MEDIUMstatsmodels/tsa/statespace/structural.py556 # Create a bitmask holding the level/trend specificationSTRING
MEDIUMstatsmodels/tsa/statespace/structural.py565 # Create the trend specification, if it was not givenSTRING
MEDIUMstatsmodels/tsa/statespace/structural.py978 # Create the starting parameter listSTRING
MEDIUMstatsmodels/tsa/statespace/structural.py1846 # Create the model nameSTRING
MEDIUMstatsmodels/tsa/statespace/_pykalman_smoother.py176 # Create a temporary matrixCOMMENT
MEDIUMstatsmodels/tsa/statespace/varmax.py548 # Create the state covariance matrixSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py625 # Create the state covariance matrixSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py1099 # Create the model nameSTRING
MEDIUMstatsmodels/tsa/statespace/varmax.py1189 # Create the tableSTRING
MEDIUMstatsmodels/tsa/statespace/dynamic_factor.py1169 # Create the new axisSTRING
98 more matches not shown…
Decorative Section Separators113 hits · 318 pts
SeverityFileLineSnippetContext
MEDIUMtools/R2nparray/R/R2nparray.R169 #----------COMMENT
MEDIUMexamples/python/mixed_lm_example.py39# =======================================COMMENT
MEDIUMexamples/incomplete/wls_extended.py50# ----------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py84# ----------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py149# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py247# --------------------------COMMENT
MEDIUMexamples/incomplete/wls_extended.py363# -----------------------------------------------------------------STRING
MEDIUMexamples/incomplete/dates.py9# ---------------COMMENT
MEDIUMexamples/incomplete/dates.py18# ------------COMMENT
MEDIUMexamples/incomplete/dates.py32# --------------------COMMENT
MEDIUMstatsmodels/robust/tests/test_rlm.py210# --------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tools/eval_measures.py355# ---------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py178 # ------------------------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py227 # -------------COMMENT
MEDIUMstatsmodels/iolib/summary.py232 # --------------COMMENT
MEDIUMstatsmodels/iolib/summary.py417 # ------------------------------------COMMENT
MEDIUMstatsmodels/iolib/summary.py504 # ------------------------------------COMMENT
MEDIUMstatsmodels/sandbox/descstats.py14# ============================================COMMENT
MEDIUMstatsmodels/sandbox/descstats.py16# ============================================COMMENT
MEDIUMstatsmodels/sandbox/tools/try_mctools.py52# ----------------------COMMENT
MEDIUMstatsmodels/sandbox/examples/ex_onewaygls.py16# --------------COMMENT
MEDIUMstatsmodels/sandbox/examples/ex_onewaygls.py25# ----------------COMMENT
MEDIUMstatsmodels/sandbox/examples/ex_onewaygls.py191# -----------------------STRING
MEDIUMstatsmodels/sandbox/examples/try_gmm_other.py67 # ----------------------------COMMENT
MEDIUMstatsmodels/sandbox/examples/try_gmm_other.py120 # -------------------------------------------------COMMENT
MEDIUMstatsmodels/sandbox/examples/ex_cusum.py20# --------------COMMENT
MEDIUMstatsmodels/sandbox/examples/ex_cusum.py28# ----------------COMMENT
MEDIUMstatsmodels/sandbox/regression/ols_anova_original.py327# -------------------STRING
MEDIUMstatsmodels/sandbox/regression/try_ols_anova.py200 # ------------------------------STRING
MEDIUMstatsmodels/sandbox/regression/try_ols_anova.py246 # -------------------STRING
MEDIUMstatsmodels/sandbox/regression/ar_panel.py137 # ------------COMMENT
MEDIUMstatsmodels/sandbox/regression/runmnl.py236# ------------------------------COMMENT
MEDIUMstatsmodels/sandbox/regression/runmnl.py309# ----------------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py99# -----------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py185# -----------------COMMENT
MEDIUMstatsmodels/sandbox/regression/tests/test_gmm.py827# ------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py451 # -----------------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py490 # ---------------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py522 # ------------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py664 # ===================================================COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py667 # -------------------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/estimators.py690 # --------------------------------------------------------COMMENT
MEDIUMstatsmodels/sandbox/distributions/tests/test_transf.py104# -----------------------------COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py495# ============================COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py499# ============================COMMENT
MEDIUMstatsmodels/sandbox/stats/multicomp.py2016 # ------------COMMENT
MEDIUMstatsmodels/examples/ex_regressionplots.py20# ---------------------------------------------COMMENT
MEDIUMstatsmodels/examples/tut_ols_ancova.py46# -------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R18# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R28# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R39# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R49# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R60# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R72# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R83# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R97# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R109# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R120# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R142# ----------------------------------------------------------------------------COMMENT
MEDIUMstatsmodels/tsa/statespace/tests/results/test_ucm.R167# ----------------------------------------------------------------------------COMMENT
53 more matches not shown…
Deep Nesting284 hits · 280 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py738CODE
LOWtools/validate_docstrings.py976CODE
LOWtools/validate_docstrings.py1043CODE
LOWtools/validate_docstrings.py372CODE
LOWtools/validate_docstrings.py512CODE
LOWtools/export_notebooks_to_python.py100CODE
LOWtools/releasing/enumerate-api.py28CODE
LOWtools/releasing/enumerate-api.py74CODE
LOWtools/releasing/enumerate-api.py113CODE
LOWstatsmodels/conftest.py158CODE
LOWstatsmodels/robust/covariance.py578CODE
LOWstatsmodels/robust/robust_linear_model.py195CODE
LOWstatsmodels/nonparametric/smoothers_lowess.py14CODE
LOWstatsmodels/tools/web.py10CODE
LOWstatsmodels/tools/rng_qrng.py7CODE
LOWstatsmodels/tools/tools.py145CODE
LOWstatsmodels/tools/docstring_helpers.py19CODE
LOWstatsmodels/tools/docstring_helpers.py59CODE
LOWstatsmodels/tools/docstring_helpers.py61CODE
LOWstatsmodels/tools/rootfinding.py20CODE
LOWstatsmodels/tools/docstring.py279CODE
LOWstatsmodels/tools/docstring.py372CODE
LOWstatsmodels/tools/docstring.py488CODE
LOWstatsmodels/tools/validation/validation.py41CODE
LOWstatsmodels/tools/validation/validation.py292CODE
LOWstatsmodels/tools/validation/validation.py363CODE
LOWstatsmodels/tools/validation/validation.py192CODE
LOWstatsmodels/compat/scipy.py17CODE
LOWstatsmodels/compat/_scipy_multivariate_t.py361CODE
LOWstatsmodels/compat/_scipy_multivariate_t.py1114CODE
LOWstatsmodels/multivariate/multivariate_ols.py273CODE
LOWstatsmodels/multivariate/multivariate_ols.py438CODE
LOWstatsmodels/multivariate/multivariate_ols.py594CODE
LOWstatsmodels/multivariate/manova.py78CODE
LOWstatsmodels/multivariate/pca.py319CODE
LOWstatsmodels/multivariate/factor.py671CODE
LOWstatsmodels/multivariate/factor_rotation/_wrappers.py17CODE
LOW…tsmodels/multivariate/factor_rotation/_gpa_rotation.py27CODE
LOWstatsmodels/discrete/discrete_model.py1806CODE
LOWstatsmodels/discrete/discrete_model.py2524CODE
LOWstatsmodels/discrete/discrete_model.py3966CODE
LOWstatsmodels/discrete/discrete_model.py4797CODE
LOWstatsmodels/discrete/discrete_model.py5116CODE
LOWstatsmodels/discrete/conditional_models.py614CODE
LOWstatsmodels/discrete/discrete_margins.py126CODE
LOWstatsmodels/discrete/diagnostic.py147CODE
LOWstatsmodels/discrete/count_model.py454CODE
LOWstatsmodels/discrete/truncated_model.py303CODE
LOWstatsmodels/discrete/truncated_model.py1223CODE
LOWstatsmodels/datasets/utils.py294CODE
LOWstatsmodels/miscmodels/ordinal_model.py120CODE
LOWstatsmodels/iolib/summary.py672CODE
LOWstatsmodels/iolib/summary.py717CODE
LOWstatsmodels/iolib/table.py91CODE
LOWstatsmodels/iolib/table.py309CODE
LOWstatsmodels/iolib/table.py409CODE
LOWstatsmodels/iolib/foreign.py13CODE
LOWstatsmodels/gam/smooth_basis.py131CODE
LOWstatsmodels/sandbox/sysreg.py167CODE
LOWstatsmodels/sandbox/bspline.py35CODE
224 more matches not shown…
AI Structural Patterns254 hits · 246 pts
SeverityFileLineSnippetContext
LOWtools/nbgenerate.py113CODE
LOWtools/nbgenerate.py185CODE
LOWexamples/python/statespace_sarimax_pymc3.py222CODE
LOWexamples/python/statespace_custom_models.py784CODE
LOWstatsmodels/robust/tools.py160CODE
LOWstatsmodels/robust/covariance.py572CODE
LOWstatsmodels/robust/covariance.py422CODE
LOWstatsmodels/robust/covariance.py789CODE
LOWstatsmodels/robust/covariance.py909CODE
LOWstatsmodels/robust/covariance.py1146CODE
LOWstatsmodels/robust/covariance.py1475CODE
LOWstatsmodels/robust/covariance.py1602CODE
LOWstatsmodels/robust/covariance.py1716CODE
LOWstatsmodels/robust/covariance.py1973CODE
LOWstatsmodels/robust/covariance.py2181CODE
LOWstatsmodels/robust/resistant_linear_model.py104CODE
LOWstatsmodels/robust/robust_linear_model.py195CODE
LOWstatsmodels/robust/scale.py578CODE
LOWstatsmodels/robust/scale.py690CODE
LOWstatsmodels/nonparametric/smoothers_lowess_old.py122CODE
LOWstatsmodels/nonparametric/kde.py310CODE
LOWstatsmodels/nonparametric/kde.py451CODE
LOWstatsmodels/nonparametric/kde.py90CODE
LOWstatsmodels/tools/rootfinding.py20CODE
LOWstatsmodels/tools/docstring.py682CODE
LOWstatsmodels/tools/_decorators.py82CODE
LOWstatsmodels/tools/validation/validation.py41CODE
LOWstatsmodels/compat/_scipy_multivariate_t.py603CODE
LOWstatsmodels/compat/_scipy_multivariate_t.py650CODE
LOWstatsmodels/multivariate/pca.py198CODE
LOWstatsmodels/multivariate/factor.py116CODE
LOWstatsmodels/discrete/discrete_model.py276CODE
LOWstatsmodels/discrete/discrete_model.py608CODE
LOWstatsmodels/discrete/discrete_model.py647CODE
LOWstatsmodels/discrete/discrete_model.py898CODE
LOWstatsmodels/discrete/discrete_model.py1298CODE
LOWstatsmodels/discrete/discrete_model.py1528CODE
LOWstatsmodels/discrete/discrete_model.py2124CODE
LOWstatsmodels/discrete/discrete_model.py2199CODE
LOWstatsmodels/discrete/discrete_model.py4044CODE
LOWstatsmodels/discrete/discrete_model.py4127CODE
LOWstatsmodels/discrete/discrete_model.py4646CODE
LOWstatsmodels/discrete/discrete_model.py4728CODE
LOWstatsmodels/discrete/discrete_model.py5178CODE
LOWstatsmodels/discrete/discrete_model.py5276CODE
LOWstatsmodels/discrete/discrete_model.py5182CODE
LOWstatsmodels/discrete/discrete_model.py5840CODE
LOWstatsmodels/discrete/conditional_models.py112CODE
LOWstatsmodels/discrete/conditional_models.py549CODE
LOWstatsmodels/discrete/_diagnostics_count.py232CODE
LOWstatsmodels/discrete/_diagnostics_count.py516CODE
LOWstatsmodels/discrete/_diagnostics_count.py562CODE
LOWstatsmodels/discrete/_diagnostics_count.py611CODE
LOWstatsmodels/discrete/diagnostic.py110CODE
LOWstatsmodels/discrete/diagnostic.py145CODE
LOWstatsmodels/discrete/diagnostic.py261CODE
LOWstatsmodels/discrete/count_model.py190CODE
LOWstatsmodels/discrete/count_model.py235CODE
LOWstatsmodels/discrete/count_model.py1151CODE
LOWstatsmodels/discrete/count_model.py1133CODE
194 more matches not shown…
AI Response Leakage16 hits · 124 pts
SeverityFileLineSnippetContext
HIGHexamples/python/glm.py28# In this example, we use the Star98 dataset which was taken withCOMMENT
HIGHexamples/python/glm_weights.py24# In this example, we'll use the affair dataset using a handful ofCOMMENT
HIGHexamples/python/statespace_varmax.py94# uncorrelated. In this example we leave out the exogenous regressor but nowCOMMENT
HIGHexamples/python/kernel_density.py32# In this example we will show the following:COMMENT
HIGHexamples/python/statespace_news.py459# In this example, we'll consider forecasting monthly core price inflationCOMMENT
HIGHexamples/python/categorical_interaction_plot.py14# In this example, we will visualize the interaction between categoricalCOMMENT
HIGHexamples/python/multivariate_ls.py155# In this example, the pvalues agree at 3 decimals.COMMENT
HIGHexamples/python/wls.py51# In this example, `w` is the standard deviation of the error. `WLS`COMMENT
HIGHexamples/python/influence_glm_logit.py68# In this example observation 4 and 18 have a large standardized residualCOMMENT
HIGHexamples/python/metaanalysis1.py157# In this example the effect size is the mean of measurements in a lab. WeCOMMENT
HIGHexamples/python/rolling_ls.py148# available for the full window length. In this example, we start once weCOMMENT
HIGHexamples/python/ordinal_regression.py250# In this example, the created dummy variables `C(dummy)[0.0]` andCOMMENT
HIGHexamples/incomplete/ols_table.py14# Note: In this example using zscored/standardized variables has no effect onCOMMENT
HIGHstatsmodels/sandbox/panel/mixed.py643# # note I have written this already as helper function, get itCOMMENT
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
Modern Structural Boilerplate122 hits · 122 pts
SeverityFileLineSnippetContext
LOWstatsmodels/conftest.py20logger = logging.getLogger(__name__)CODE
LOWstatsmodels/__init__.py39__all__ = ["__version__", "__version_info__", "__version_tuple__", "test"]CODE
LOWstatsmodels/api.py1__all__ = [CODE
LOWstatsmodels/robust/__init__.py4__all__ = ["Huber", "HuberScale", "hubers_scale", "mad", "norms", "test"]CODE
LOWstatsmodels/robust/robust_linear_model.py28__all__ = ["RLM"]CODE
LOWstatsmodels/nonparametric/kernel_regression.py51__all__ = ["KernelCensoredReg", "KernelReg"]CODE
LOWstatsmodels/nonparametric/kernel_density.py44__all__ = ["EstimatorSettings", "KDEMultivariate", "KDEMultivariateConditional"]CODE
LOWstatsmodels/nonparametric/api.py1__all__ = [CODE
LOWstatsmodels/tools/eval_measures.py653__all__ = [STRING
LOWstatsmodels/tools/__init__.py7__all__ = ["add_constant", "categorical", "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.py42__all__ = [CODE
LOWstatsmodels/tools/validation/__init__.py14__all__ = [CODE
LOWstatsmodels/compat/matplotlib.py11__all__ = ["MPL_LT_310"]CODE
LOWstatsmodels/compat/pandas.py26__all__ = [CODE
LOWstatsmodels/compat/__init__.py13__all__ = [CODE
LOWstatsmodels/compat/numpy.py45__all__ = [CODE
LOWstatsmodels/compat/platform.py5__all__ = [CODE
LOWstatsmodels/compat/pytest.py11__all__ = ["pytest_warns"]CODE
LOWstatsmodels/compat/scipy.py144__all__ = [CODE
LOWstatsmodels/compat/python.py18__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__.py44__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
LOWstatsmodels/datasets/interest_inflation/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/grunfeld/__init__.py1__all__ = [CODE
LOWstatsmodels/datasets/co2/__init__.py1__all__ = [CODE
LOWstatsmodels/miscmodels/api.py1__all__ = ["PoissonGMLE", "PoissonOffsetGMLE", "PoissonZiGMLE", "TLinearModel"]CODE
LOWstatsmodels/iolib/__init__.py7__all__ = [CODE
62 more matches not shown…
Dead Code30 hits · 60 pts
SeverityFileLineSnippetContext
MEDIUMstatsmodels/tools/tests/test_numdiff.py333CODE
MEDIUMstatsmodels/tools/tests/test_numdiff.py334CODE
MEDIUMstatsmodels/multivariate/multivariate_ols.py537CODE
MEDIUMstatsmodels/discrete/count_model.py647CODE
MEDIUMstatsmodels/discrete/count_model.py648CODE
MEDIUMstatsmodels/discrete/count_model.py650CODE
MEDIUMstatsmodels/discrete/count_model.py660CODE
MEDIUMstatsmodels/discrete/count_model.py662CODE
MEDIUMstatsmodels/discrete/tests/test_truncated_model.py130CODE
MEDIUMstatsmodels/discrete/tests/test_truncated_model.py171CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py120CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py121CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py124CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py125CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py126CODE
MEDIUMstatsmodels/tsa/statespace/tests/test_dynamic_factor.py127CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py814CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py815CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py817CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py818CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py820CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py821CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py822CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py826CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py827CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py828CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py829CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py830CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py831CODE
MEDIUM…dels/tsa/statespace/tests/test_simulation_smoothing.py832CODE
Excessive Try-Catch Wrapping56 hits · 56 pts
SeverityFileLineSnippetContext
LOWtools/validate_docstrings.py538 except Exception as exc:CODE
LOWtools/nbgenerate.py148 except Exception as e:STRING
LOWtools/releasing/enumerate-api.py64 except Exception:CODE
LOWtools/releasing/enumerate-api.py105 except Exception:CODE
LOWdocs/source/conf.py500 except Exception as exc:STRING
LOWexamples/run_all.py38 except Exception as e:CODE
LOWstatsmodels/nonparametric/kde.py44 except Exception as exc:CODE
MEDIUMstatsmodels/nonparametric/kde.py41def _checkisfit(self):CODE
LOWstatsmodels/tools/rng_qrng.py56 except Exception as exc_1:CODE
LOWstatsmodels/tools/validation/validation.py285 except Exception as exc:CODE
LOWstatsmodels/tools/validation/validation.py329 except Exception:CODE
LOWstatsmodels/tools/validation/validation.py405 except Exception:CODE
LOWstatsmodels/compat/patsy.py132 except Exception:CODE
MEDIUMstatsmodels/compat/patsy.py16def monkey_patch_cat_dtype():CODE
LOWstatsmodels/datasets/utils.py61 except Exception:CODE
LOWstatsmodels/datasets/utils.py155 except Exception:CODE
LOWstatsmodels/sandbox/sysreg.py333 except Exception as exc:CODE
LOWstatsmodels/sandbox/examples/run_all.py36 except Exception as exc:CODE
LOWstatsmodels/sandbox/examples/example_sysreg.py159 except Exception as exc:CODE
LOW…atsmodels/sandbox/examples/thirdparty/ex_ratereturn.py23except Exception: # blanket for any unpickling errorCODE
MEDIUM…atsmodels/sandbox/examples/thirdparty/ex_ratereturn.py24 print("Error with unpickling, a new pickle file can be created with findow_1")CODE
LOWstatsmodels/sandbox/distributions/gof_new.py120 except Exception:CODE
LOW…atsmodels/sandbox/distributions/tests/check_moments.py102 except Exception:CODE
LOWstatsmodels/examples/ex_emplike_2.py91except Exception:CODE
LOWstatsmodels/examples/ex_rootfinding.py98 except Exception as e:CODE
LOWstatsmodels/examples/try_tukey_hsd.py387except Exception as e:CODE
LOWstatsmodels/examples/run_all.py72 except Exception:CODE
LOWstatsmodels/genmod/generalized_linear_model.py1279 except Exception as exc:STRING
LOWstatsmodels/tsa/arima_process.py881 except Exception as exc:STRING
LOWstatsmodels/tsa/deterministic.py116 except Exception as exc:CODE
LOWstatsmodels/tsa/tsatools.py129 except Exception:CODE
MEDIUMstatsmodels/tsa/tsatools.py126def safe_is_const(s):CODE
LOWstatsmodels/tsa/ar_model.py1887 except Exception as exc:CODE
LOWstatsmodels/tsa/statespace/mlemodel.py5403 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/statespace/mlemodel.py5407 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/statespace/mlemodel.py5411 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/statespace/tests/test_save.py31 except Exception:CODE
LOWstatsmodels/tsa/vector_ar/util.py300 except Exception:CODE
MEDIUMstatsmodels/tsa/vector_ar/util.py297def get_index(lst, name):CODE
LOWstatsmodels/tsa/regime_switching/markov_switching.py1530 except Exception: # FIXME: catch something specificCODE
LOWstatsmodels/tsa/arima/tests/test_model.py467 except Exception as exc:CODE
LOWstatsmodels/tsa/arima/tests/test_model.py477 except Exception as exc:CODE
LOWstatsmodels/tsa/stattools/_arma_order_selection.py43 except Exception: # no idea what happenedCODE
LOWstatsmodels/tsa/holtwinters/model.py260 except Exception as exc:CODE
LOWstatsmodels/tsa/exponential_smoothing/base.py893 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/exponential_smoothing/base.py897 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/exponential_smoothing/base.py901 except Exception: # FIXME: catch something specificSTRING
LOWstatsmodels/tsa/base/tsa_model.py557 except Exception as exc:CODE
LOWstatsmodels/graphics/gofplots.py231 except Exception as exc:CODE
LOWstatsmodels/graphics/gofplots.py263 except Exception as exc:CODE
LOWstatsmodels/base/model.py1183 except Exception as exc:CODE
LOWstatsmodels/stats/tabledist.py95 except Exception as exc:CODE
LOWstatsmodels/stats/diagnostic.py1078 except Exception as exc:STRING
LOWstatsmodels/stats/libqsturng/qsturng_.py1917 except Exception:CODE
LOWstatsmodels/stats/libqsturng/qsturng_.py2095 except Exception as e:CODE
LOWstatsmodels/stats/tests/test_power.py99 except Exception as exc:CODE
Structural Annotation Overuse22 hits · 32 pts
SeverityFileLineSnippetContext
LOWexamples/python/statespace_news.py102# #### Step 1: fitting the model on the available datasetCOMMENT
LOWexamples/python/statespace_news.py165# #### Step 2: computing the "news" from a new observationCOMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py421 # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I)COMMENT
LOWexamples/python/statespace_forecasting.py198# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py201# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py253# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py256# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py187# Step 1: fit model parameters w/ training sampleCOMMENT
LOWexamples/python/statespace_forecasting.py240# Step 1: append a new observation to the sample and refit the parametersCOMMENT
LOWstatsmodels/tsa/statespace/tools.py859 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py864 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOWstatsmodels/tsa/statespace/tools.py902 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py908 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOWstatsmodels/tsa/statespace/tools.py1437 # Step 1: convert matrices from the space of stationarySTRING
LOWstatsmodels/tsa/statespace/tools.py1443 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py181 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 2: estimate ARMA model via least squaresCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py237 # Step 3: bias correction (if requested)COMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py182 # Step 1: OLSCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py207 # Step 2 - 4: iterate feasible GLS to convergenceCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py228 # Step 2: ARMACOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py294 # Step 3: GLSCOMMENT
Verbosity Indicators21 hits · 31 pts
SeverityFileLineSnippetContext
LOWexamples/python/statespace_news.py102# #### Step 1: fitting the model on the available datasetCOMMENT
LOWexamples/python/statespace_news.py165# #### Step 2: computing the "news" from a new observationCOMMENT
LOWexamples/python/statespace_tvpvar_mcmc_cfa.py421 # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I)COMMENT
LOWexamples/python/statespace_forecasting.py198# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py201# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py253# Step 2: produce one-step-ahead forecastsCOMMENT
LOWexamples/python/statespace_forecasting.py256# Step 3: compute root mean square forecasting errorCOMMENT
LOWexamples/python/statespace_forecasting.py187# Step 1: fit model parameters w/ training sampleCOMMENT
LOWexamples/python/statespace_forecasting.py240# Step 1: append a new observation to the sample and refit the parametersCOMMENT
LOWstatsmodels/tsa/statespace/tools.py859 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py864 # Step 2: convert matrices from our "partial autocorrelation matrix" spaceSTRING
LOWstatsmodels/tsa/statespace/tools.py902 # Step 1: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/statespace/tools.py908 # Step 2: convert matrices from our "partial autocorrelation matrix"STRING
LOWstatsmodels/tsa/statespace/tools.py1437 # Step 1: convert matrices from the space of stationarySTRING
LOWstatsmodels/tsa/statespace/tools.py1443 # Step 2: convert from arbitrary matrices to those with singular valuesSTRING
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py181 # Step 1: Compute long AR model via Yule-Walker, get residualsCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py191 # Step 2: estimate ARMA model via least squaresCOMMENT
LOWstatsmodels/tsa/arima/estimators/hannan_rissanen.py237 # Step 3: bias correction (if requested)COMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py182 # Step 1: OLSCOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py228 # Step 2: ARMACOMMENT
LOWstatsmodels/tsa/arima/estimators/gls.py294 # Step 3: GLSCOMMENT
Slop Phrases10 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUMexamples/python/formulas.py43# Or you can use the following conventionCOMMENT
MEDIUMexamples/python/statespace_forecasting.py506# all, like a Numpy array. However, if you can use a Pandas series with anCOMMENT
MEDIUMexamples/python/regression_plots.py132# For a quick check of all the regressors, you can useCOMMENT
MEDIUMexamples/python/regression_plots.py134# points, but you can use them to identify problems and then useCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc3.py298# For version <= 3.6 you can use lines=dict(res_mle.params) insteadCOMMENT
MEDIUMexamples/python/statespace_sarimax_pymc3.py428# For version <= 3.6 you can use lines=dict(res_mle.params) insteadCOMMENT
LOWexamples/python/statespace_custom_models.py753# .html), so make sure to check that for more details.COMMENT
MEDIUMexamples/python/glm_formula.py14# This notebook illustrates how you can use R-style formulas to fitCOMMENT
MEDIUMstatsmodels/examples/example_discrete_mnl.py21# However, you can use other solversCOMMENT
LOW…smodels/regression/tests/results/results_regression.py184 # from Stata, make sure you force double to replicateCOMMENT
Hallucination Indicators2 hits · 25 pts
SeverityFileLineSnippetContext
CRITICALstatsmodels/sandbox/mcevaluate/mcresuts_arma1.txt7scikits.statsmodels.tsa.arma_mle.Arma.fit((2,0,2))CODE
CRITICALstatsmodels/stats/outliers_influence.py511 # self.results.model.family.link.deriv(self.results.fittedvalues)COMMENT
Redundant / Tautological Comments15 hits · 16 pts
SeverityFileLineSnippetContext
LOWstatsmodels/examples/l1_demo/short_demo.py48# Print resultsCOMMENT
LOWstatsmodels/examples/l1_demo/short_demo.py75# Print resultsCOMMENT
LOW…odels/genmod/tests/gee_categorical_simulation_check.py197 # Loop over data generating modelsCOMMENT
LOWstatsmodels/genmod/tests/gee_simulation_check.py259# Loop over data generating modelsCOMMENT
LOW…tsmodels/genmod/tests/gee_gaussian_simulation_check.py264 # Loop over data generating modelsCOMMENT
LOW…atsmodels/genmod/tests/gee_poisson_simulation_check.py191 # Loop over data generating modelsCOMMENT
LOWstatsmodels/tsa/statespace/structural.py436 # Check if any of the trend/level components have been set, andSTRING
LOWstatsmodels/tsa/statespace/tools.py219 # Check if we just have a scalar polynomialSTRING
LOWstatsmodels/tsa/statespace/tools.py222 # Check if 1 was passed as the first argument (indicating anSTRING
LOWstatsmodels/tsa/statespace/representation.py274 # Check if k_endog is actually the endog arraySTRING
LOWstatsmodels/tsa/statespace/dynamic_factor_mq.py2687 # Print output every `disp` observationsSTRING
LOWstatsmodels/tsa/regime_switching/markov_switching.py766 # Check if we need to do weighted averagingCOMMENT
LOWstatsmodels/tsa/base/tsa_model.py202 # Check if we now have a modified indexCOMMENT
LOWstatsmodels/regression/process_regression.py848 # Check if the group exists, since _groups_ix is aSTRING
LOWstatsmodels/duration/tests/results/phreg_gentests.py26 # Set this to get a reasonable amount of censoringCOMMENT
Synthetic Comment Markers2 hits · 5 pts
SeverityFileLineSnippetContext
HIGHstatsmodels/imputation/mice.py593 # Order the columns as requestedSTRING
HIGHstatsmodels/imputation/mice.py609 # Order the rows as requestedSTRING
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWstatsmodels/tsa/statespace/exponential_smoothing.py164 # 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.py27# 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