Statsmodels: statistical modeling and econometrics in Python
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docstrings.py | 650 | def get_returns_not_on_nested_functions(node): | CODE |
| LOW | tools/validate_docstrings.py | 686 | def mentioned_private_classes(self): | CODE |
| LOW | examples/python/lowess.py | 64 | def lowess_with_confidence_bounds( | CODE |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 493 | def plot_coefficients_by_equation(states): | CODE |
| LOW | statsmodels/conftest.py | 158 | def pytest_collection_modifyitems(config, items): | CODE |
| LOW | statsmodels/conftest.py | 195 | def check_global_randomstate_usage(request): | CODE |
| LOW | statsmodels/robust/tools.py | 502 | def _convert_to_dict_mvmean_effs(eff_mean=True): | CODE |
| LOW | statsmodels/robust/covariance.py | 51 | def _naive_ledoit_wolf_shrinkage(x, center): | STRING |
| LOW | statsmodels/robust/covariance.py | 77 | def coef_normalize_cov_truncated(frac, k_vars): | STRING |
| LOW | statsmodels/robust/covariance.py | 119 | def _coef_normalize_cov_truncated_(frac, k_vars): | STRING |
| LOW | statsmodels/robust/covariance.py | 792 | def cov_tyler_pairs_regularized( | CODE |
| LOW | statsmodels/robust/tests/test_rlm.py | 328 | def test_rlm_start_values_errors(): | CODE |
| LOW | statsmodels/robust/tests/test_scale.py | 445 | def test_scale_trimmed_approx(): | CODE |
| LOW | statsmodels/nonparametric/kernels_asymmetric.py | 636 | def kernel_pdf_recipinvgauss_(x, sample, bw): | STRING |
| LOW | statsmodels/nonparametric/kernels.py | 165 | def aitchison_aitken_convolution(h, Xi, Xj): | CODE |
| LOW⚡ | statsmodels/nonparametric/tests/test_kde.py | 50 | def test_check_is_fit_exception(self): | CODE |
| LOW⚡ | statsmodels/nonparametric/tests/test_kde.py | 54 | def test_non_weighted_fft_exception(self): | CODE |
| LOW⚡ | statsmodels/nonparametric/tests/test_kde.py | 64 | def test_wrong_weight_length_exception(self): | CODE |
| LOW⚡ | statsmodels/nonparametric/tests/test_kde.py | 74 | def test_non_gaussian_fft_exception(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kde.py | 352 | def test_norm_constant_calculation(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kde.py | 399 | def test_check_is_fit_ok_with_custom_bandwidth(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kde.py | 406 | def test_check_is_fit_ok_with_standard_custom_bandwidth(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kde.py | 418 | def test_check_is_fit_ok_with_float_bandwidth(self, fft): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 284 | def test_continuousdata_lc_cvls(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 309 | def test_continuousdata_ll_cvls(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 333 | def test_continuous_mfx_ll_cvls(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 384 | def test_mfx_nonlinear_ll_cvls(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 413 | def test_continuous_cvls_efficient(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 482 | def test_significance_continuous(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 509 | def test_significance_seed_legacy(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 594 | def test_significance_seed_thread_safe(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 626 | def test_significance_discrete(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 656 | def test_user_specified_kernel(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 682 | def test_censored_user_specified_kernel(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 709 | def test_efficient_user_specificed_bw(self): | CODE |
| LOW | …tsmodels/nonparametric/tests/test_kernel_regression.py | 724 | def test_censored_efficient_user_specificed_bw(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_bandwidths.py | 30 | def test_calculate_bandwidth_gaussian(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_bandwidths.py | 42 | def test_calculate_normal_reference_bandwidth(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_bandwidths.py | 51 | def test_calculate_normal_reference_constant(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 271 | def test_weighted_pdf_non_fft(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 296 | def test_all_samples_same_location_bw(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 415 | def test_continuous_cvls_efficient(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 435 | def test_continuous_cvml_efficient(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 476 | def test_efficient_user_specified_bw(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 572 | def test_continuous_normal_ref(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 632 | def test_continuous_cvml_efficient(self): | CODE |
| LOW | statsmodels/nonparametric/tests/test_kernel_density.py | 659 | def test_efficient_user_specified_bw(self): | CODE |
| LOW | statsmodels/tools/docstring.py | 90 | def read_to_next_unindented_line(self): | CODE |
| LOW | statsmodels/tools/tests/test_data.py | 47 | def test_as_array_with_name_series(): | CODE |
| LOW | statsmodels/tools/tests/test_data.py | 54 | def test_as_array_with_name_array(): | CODE |
| LOW⚡ | statsmodels/tools/tests/test_docstring_helpers.py | 56 | def test_dict_deprecate_kwarg(key): | CODE |
| LOW⚡ | statsmodels/tools/tests/test_docstring_helpers.py | 62 | def test_missing_deprecate_kwarg(key): | CODE |
| LOW⚡ | statsmodels/tools/tests/test_docstring_helpers.py | 69 | def test_callable_deprecate_kwarg(x): | CODE |
| LOW | statsmodels/tools/tests/test_tools.py | 82 | def test_add_constant_dataframe(self): | CODE |
| LOW | statsmodels/tools/tests/test_tools.py | 132 | def test_extendedpinv_singular(self): | CODE |
| LOW | statsmodels/tools/tests/test_tools.py | 200 | def test_pandas_const_series_prepend(): | CODE |
| LOW | statsmodels/tools/tests/test_tools.py | 215 | def test_pandas_const_df_prepend(): | CODE |
| LOW | statsmodels/tools/tests/test_testing.py | 11 | def check_params_table_classes(attribute, bunch_type): | CODE |
| LOW | statsmodels/tools/validation/tests/test_validation.py | 122 | def test_right_squeeze_and_pad(self): | CODE |
| LOW | statsmodels/tools/validation/tests/test_validation.py | 239 | def test_wrap_pandas_append_non_string(): | CODE |
| 922 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | statsmodels/tools/grouputils.py | 432 | if not test.index.equals(test_sorted.index): | CODE |
| HIGH | statsmodels/tools/tests/test_grouputils.py | 36 | assert not index.equals(self.grouping.index) | CODE |
| HIGH | statsmodels/tools/tests/test_grouputils.py | 40 | assert not sorted_data.equals(self.data) | CODE |
| HIGH | statsmodels/tools/tests/test_grouputils.py | 55 | assert not sorted_data.equals(series) | CODE |
| HIGH | statsmodels/datasets/utils.py | 106 | if data.index.equals(Index(lrange(1, len(data) + 1))): | CODE |
| HIGH | statsmodels/imputation/mice.py | 311 | ix_obs = np.flatnonzero(~null) | STRING |
| HIGH | statsmodels/imputation/mice.py | 312 | ix_miss = np.flatnonzero(null) | STRING |
| HIGH | statsmodels/genmod/generalized_linear_model.py | 2032 | self._endog, self.null, self._var_weights, self._freq_weights | CODE |
| HIGH | statsmodels/genmod/generalized_linear_model.py | 2042 | self.null, | CODE |
| HIGH | statsmodels/genmod/tests/test_glm.py | 1067 | assert_allclose(mod1.null, mod2.null, rtol=1e-10) | STRING |
| HIGH⚡ | statsmodels/tsa/statespace/tools.py | 361 | if s.columns.equals(pd.Index([None])): | STRING |
| HIGH⚡ | statsmodels/tsa/statespace/tools.py | 367 | if axis == 0 and not base_columns.equals(s_columns): | STRING |
| HIGH⚡ | statsmodels/tsa/statespace/tools.py | 370 | elif axis == 1 and not series[0].index.equals(s.index): | STRING |
| HIGH | statsmodels/tsa/statespace/dynamic_factor_mq.py | 1359 | endog_mean.index.equals(pd.Index(endog_names))): | STRING |
| HIGH | statsmodels/tsa/statespace/dynamic_factor_mq.py | 1366 | endog_std.index.equals(pd.Index(endog_names))): | STRING |
| HIGH | statsmodels/tsa/statespace/mlemodel.py | 74 | if given_index is not None and not desired_index.equals(given_index): | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1905 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1915 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1916 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1957 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1967 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 1968 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 2019 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 2020 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 2093 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_simulate.py | 2100 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 1889 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 1931 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 1989 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 2005 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 2042 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 2059 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 2073 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_simulate.py | 2074 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_impulse_responses.py | 860 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_impulse_responses.py | 873 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_impulse_responses.py | 885 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_impulse_responses.py | 898 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_impulse_responses.py | 913 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_impulse_responses.py | 918 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_sarimax.py | 2811 | assert_(mod._index.equals(endog.index[1:])) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_sarimax.py | 2819 | assert_(mod._index.equals(endog.index[1:])) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_sarimax.py | 2829 | assert_(mod._index.equals(endog.index[1:])) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_sarimax.py | 2841 | assert_(mod._index.equals(pd.RangeIndex(start=0, stop=len(values) - 1))) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_sarimax.py | 2842 | assert_(mod.data.row_labels.equals(index[1:])) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_sarimax.py | 2156 | assert_equal(out.index.equals(pd.Index(["a"])), True) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1601 | assert_(mod._index.equals(mod_base._index)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1608 | assert_(mod._index.equals(mod_base._index)) | CODE |
| HIGH⚡ | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1615 | assert_(mod._index.equals(mod_base._index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1690 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1691 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1706 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1724 | assert_(actual.index.equals(desired.index)) | CODE |
| HIGH | …smodels/tsa/statespace/tests/test_dynamic_factor_mq.py | 1725 | assert_(actual.columns.equals(desired.columns)) | CODE |
| HIGH | statsmodels/tsa/statespace/tests/test_varmax.py | 963 | assert out.index.equals(pd.Index(["a"])) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_mlemodel.py | 1247 | assert states.predicted.index.equals(predicted_ix) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_mlemodel.py | 1248 | assert states.predicted.columns.equals(cols) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_mlemodel.py | 1250 | assert states.predicted_cov.index.equals(predicted_cov_ix) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_mlemodel.py | 1251 | assert states.predicted.columns.equals(cols) | CODE |
| HIGH⚡ | statsmodels/tsa/statespace/tests/test_mlemodel.py | 1254 | assert states.filtered.index.equals(ix) | CODE |
| 136 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/source/conf.py | 62 | CODE | |
| LOW | examples/python/statespace_local_linear_trend.py | 59 | CODE | |
| LOW | examples/python/statespace_local_linear_trend.py | 182 | CODE | |
| LOW | examples/python/statespace_local_linear_trend.py | 183 | CODE | |
| LOW | examples/python/statespace_local_linear_trend.py | 185 | CODE | |
| LOW | examples/python/tsa_dates.py | 18 | CODE | |
| LOW | examples/python/tsa_dates.py | 34 | CODE | |
| LOW | examples/python/statespace_fixed_params.py | 25 | CODE | |
| LOW | examples/python/statespace_fixed_params.py | 28 | CODE | |
| LOW | examples/python/statespace_varmax.py | 24 | CODE | |
| LOW | examples/python/statespace_varmax.py | 25 | CODE | |
| LOW | examples/python/contrasts.py | 16 | CODE | |
| LOW | examples/python/treatment_effect.py | 44 | CODE | |
| LOW | examples/python/statespace_structural_harvey_jaeger.py | 35 | CODE | |
| LOW | examples/python/statespace_structural_harvey_jaeger.py | 39 | CODE | |
| LOW | examples/python/statespace_structural_harvey_jaeger.py | 39 | CODE | |
| LOW | examples/python/postestimation_poisson.py | 63 | CODE | |
| LOW | examples/python/postestimation_poisson.py | 64 | CODE | |
| LOW | examples/python/postestimation_poisson.py | 68 | CODE | |
| LOW | examples/python/interactions_anova.py | 21 | CODE | |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 15 | CODE | |
| LOW | examples/python/count_hurdle.py | 56 | CODE | |
| LOW | examples/python/count_hurdle.py | 57 | CODE | |
| LOW | examples/python/count_hurdle.py | 58 | CODE | |
| LOW | examples/python/count_hurdle.py | 58 | CODE | |
| LOW | examples/python/count_hurdle.py | 58 | CODE | |
| LOW | examples/python/count_hurdle.py | 63 | CODE | |
| LOW | examples/python/count_hurdle.py | 63 | CODE | |
| LOW | examples/python/count_hurdle.py | 63 | CODE | |
| LOW | examples/python/count_hurdle.py | 69 | CODE | |
| LOW | examples/python/count_hurdle.py | 69 | CODE | |
| LOW | examples/python/count_hurdle.py | 69 | CODE | |
| LOW | examples/python/discrete_choice_overview.py | 15 | CODE | |
| LOW | examples/python/multivariate_ls.py | 41 | CODE | |
| LOW | examples/python/multivariate_ls.py | 45 | CODE | |
| LOW | examples/python/multivariate_ls.py | 46 | CODE | |
| LOW | examples/python/mixed_lm_example.py | 16 | CODE | |
| LOW | examples/python/statespace_forecasting.py | 27 | CODE | |
| LOW | examples/python/mstl_decomposition.py | 52 | CODE | |
| LOW | examples/python/mstl_decomposition.py | 60 | CODE | |
| LOW | examples/python/statespace_sarimax_pymc3.py | 91 | CODE | |
| LOW | examples/python/stationarity_detrending_adf_kpss.py | 28 | CODE | |
| LOW | examples/python/stationarity_detrending_adf_kpss.py | 29 | CODE | |
| LOW | examples/python/statespace_custom_models.py | 758 | CODE | |
| LOW | examples/python/stats_poisson.py | 35 | CODE | |
| LOW | examples/python/stats_poisson.py | 36 | CODE | |
| LOW | examples/python/stats_poisson.py | 37 | CODE | |
| LOW | examples/python/stats_poisson.py | 38 | CODE | |
| LOW | examples/python/statespace_concentrated_scale.py | 16 | CODE | |
| LOW | examples/python/metaanalysis1.py | 45 | CODE | |
| LOW | examples/python/metaanalysis1.py | 45 | CODE | |
| LOW | examples/python/metaanalysis1.py | 47 | CODE | |
| LOW | examples/python/metaanalysis1.py | 50 | CODE | |
| LOW | examples/python/metaanalysis1.py | 50 | CODE | |
| LOW | examples/python/metaanalysis1.py | 50 | CODE | |
| LOW | examples/python/statespace_sarimax_stata.py | 46 | CODE | |
| LOW | examples/python/markov_autoregression.py | 26 | CODE | |
| LOW | examples/python/statespace_cycles.py | 35 | CODE | |
| LOW | examples/python/statespace_cycles.py | 36 | CODE | |
| LOW | examples/python/rolling_ls.py | 30 | CODE | |
| 849 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/R2nparray/R/R2nparray-package.R | 1 | #' R2nparray | COMMENT |
| LOW | tools/R2nparray/R/R2nparray.R | 1 | #' Print R object contents to python expression | COMMENT |
| LOW | tools/R2nparray/R/R2nparray.R | 161 | } | COMMENT |
| LOW | tools/R2nparray/R/R2nparray.R | 201 | #SUR <- systemfit(inv ~ value + capital, method='SUR',data=panel) | COMMENT |
| LOW | tools/R2nparray/R/R2nparray.R | 221 | #equations = SUR[["eq"]] | COMMENT |
| LOW | docs/source/conf.py | 1 | # | COMMENT |
| LOW | docs/source/conf.py | 141 | COMMENT | |
| LOW | docs/source/conf.py | 241 | # The name for this set of Sphinx documents. If None, it defaults to | COMMENT |
| LOW | docs/source/conf.py | 281 | # html_additional_pages = {} | COMMENT |
| LOW | docs/source/conf.py | 301 | # If true, an OpenSearch description file will be output, and all pages will | COMMENT |
| LOW | docs/source/conf.py | 341 | # If true, show page references after internal links. | COMMENT |
| LOW | docs/source/conf.py | 381 | epub_copyright = ( | COMMENT |
| LOW | docs/source/conf.py | 401 | # The format is a list of tuples containing the path and title. | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 21 | # $$ | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 41 | # | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 61 | # To take advantage of the existing infrastructure, including Kalman | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 81 | # statespace matrices. | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 101 | # the model is stationary (e.g. an ARMA model), `initialize_stationary` can | COMMENT |
| LOW | examples/python/statespace_local_linear_trend.py | 261 | # Durbin, James, and Siem Jan Koopman. 2012. | COMMENT |
| LOW | examples/python/stl_decomposition.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/lowess.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/formulas.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/formulas.py | 61 | # | COMMENT |
| LOW | examples/python/formulas.py | 81 | COMMENT | |
| LOW | examples/python/formulas.py | 101 | COMMENT | |
| LOW | examples/python/pca_fertility_factors.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/pca_fertility_factors.py | 81 | COMMENT | |
| LOW | examples/python/exponential_smoothing.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/exponential_smoothing.py | 301 | "Figure 7.5: Forecasting livestock, sheep in Asia: comparing forecasting performance of non-seasonal methods." | COMMENT |
| LOW | examples/python/exponential_smoothing.py | 461 | states1[["seasonal"]].plot(ax=ax3) | COMMENT |
| LOW | examples/python/glm.py | 21 | plt.rc("font", size=14) | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 41 | # It is well known (e.g. Harvey and Jaeger [1993]) that the HP filter | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 61 | # \begin{aligned} | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 81 | # The parameters of the unobserved components model (UCM) are written as: | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 121 | # However, unobserved components models are more flexible than the HP | COMMENT |
| LOW | examples/python/statespace_fixed_params.py | 141 | COMMENT | |
| LOW | examples/python/glm_weights.py | 61 | np.bincount(data["affairs"].astype(int)) | COMMENT |
| LOW | examples/python/glm_weights.py | 121 | COMMENT | |
| LOW | examples/python/glm_weights.py | 201 | # ``df_resid``. | COMMENT |
| LOW | examples/python/glm_weights.py | 261 | # | COMMENT |
| LOW | examples/python/glm_weights.py | 301 | pd.DataFrame( | COMMENT |
| LOW | examples/python/statespace_varmax.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/statespace_varmax.py | 61 | # argument). | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 21 | # the endogenous variable and the exogenous variables. ARDL models are also | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 41 | # | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 61 | import seaborn as sns | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 121 | # `model` on `sel_res` contains the model `ARDL` specification which can be | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 161 | # 0. The selected AR lags vary more, although all of the best specifications | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 181 | # would match the specification below if a NumPy array was used. | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 221 | data[["lry", "ibo", "ide"]], | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 241 | # + \underset{\text{Autoregressive}}{\underbrace{\sum_{p=1}^P \phi_p | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 421 | # integration in the $X$ variables. If it is above the upper bound, then | COMMENT |
| LOW | examples/python/autoregressive_distributed_lag.py | 441 | # 5. Constant and trend included in the model, neither included in the | COMMENT |
| LOW | examples/python/plots_boxplots.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/contrasts.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | examples/python/contrasts.py | 21 | # A categorical variable of K categories, or levels, usually enters a | COMMENT |
| LOW | examples/python/kernel_density.py | 1 | #!/usr/bin/env python | COMMENT |
| 559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | statsmodels/nonparametric/kernel_regression.py | 0 | multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] ra | STRING |
| HIGH | statsmodels/sandbox/nonparametric/kernel_extras.py | 0 | multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] ra | STRING |
| HIGH | statsmodels/nonparametric/kernel_density.py | 0 | multivariate conditional and unconditional kernel density estimation with mixed data types. references ---------- [1] ra | STRING |
| HIGH | statsmodels/discrete/discrete_model.py | 0 | derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarray | STRING |
| HIGH | statsmodels/discrete/count_model.py | 0 | derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarray | STRING |
| HIGH | statsmodels/genmod/generalized_linear_model.py | 0 | derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarray | STRING |
| HIGH | statsmodels/othermod/betareg.py | 0 | derivative of the expected endog with respect to the parameters. not verified yet parameters ---------- params : ndarray | STRING |
| HIGH | statsmodels/discrete/discrete_model.py | 0 | derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated return | STRING |
| HIGH | statsmodels/discrete/count_model.py | 0 | derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated return | STRING |
| HIGH | statsmodels/othermod/betareg.py | 0 | derivative of score_obs w.r.t. endog parameters ---------- params : ndarray parameter at which score is evaluated return | STRING |
| HIGH | statsmodels/discrete/discrete_model.py | 0 | likelihood ratio chi-squared statistic; `-2*(llnull - llf)` | STRING |
| HIGH | statsmodels/miscmodels/ordinal_model.py | 0 | likelihood ratio chi-squared statistic; `-2*(llnull - llf)` | STRING |
| HIGH | statsmodels/base/model.py | 0 | likelihood ratio chi-squared statistic; `-2*(llnull - llf)` | STRING |
| HIGH | statsmodels/discrete/discrete_model.py | 0 | the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribu | STRING |
| HIGH | statsmodels/miscmodels/ordinal_model.py | 0 | the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribu | STRING |
| HIGH | statsmodels/base/model.py | 0 | the chi-squared probability of getting a log-likelihood ratio statistic greater than llr. llr has a chi-squared distribu | STRING |
| HIGH | statsmodels/discrete/conditional_models.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/sandbox/regression/gmm.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/genmod/qif.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/genmod/generalized_linear_model.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/regression/quantile_regression.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/duration/hazard_regression.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/base/model.py | 0 | summarize the proportional hazards regression results. parameters ---------- yname : str, optional default is `y` xname | STRING |
| HIGH | statsmodels/datasets/template_data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/engel/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/heart/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/fertility/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/cancer/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/fair/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/co2/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/strikes/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/statecrime/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/modechoice/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/nile/data.py | 0 | load the nile data and return a dataset class instance. returns ------- dataset see dataset_proposal.txt for more inform | STRING |
| HIGH | statsmodels/datasets/committee/data.py | 0 | used with express permission from the original author, who retains all rights. | STRING |
| HIGH | statsmodels/datasets/cpunish/data.py | 0 | used with express permission from the original author, who retains all rights. | STRING |
| HIGH | statsmodels/datasets/copper/data.py | 0 | used with express permission from the original author, who retains all rights. | STRING |
| HIGH | statsmodels/datasets/star98/data.py | 0 | used with express permission from the original author, who retains all rights. | STRING |
| HIGH | statsmodels/datasets/scotland/data.py | 0 | used with express permission from the original author, who retains all rights. | STRING |
| HIGH | statsmodels/datasets/committee/data.py | 0 | load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information. | STRING |
| HIGH | statsmodels/datasets/anes96/data.py | 0 | load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information. | STRING |
| HIGH | statsmodels/datasets/copper/data.py | 0 | load the copper data and returns a dataset class. returns ------- dataset see dataset_proposal.txt for more information. | STRING |
| HIGH | statsmodels/datasets/cpunish/data.py | 0 | jeff gill's `generalized linear models: a unified approach` http://jgill.wustl.edu/research/books.html | STRING |
| HIGH | statsmodels/datasets/copper/data.py | 0 | jeff gill's `generalized linear models: a unified approach` http://jgill.wustl.edu/research/books.html | STRING |
| HIGH | statsmodels/datasets/star98/data.py | 0 | jeff gill's `generalized linear models: a unified approach` http://jgill.wustl.edu/research/books.html | STRING |
| HIGH | statsmodels/datasets/scotland/data.py | 0 | jeff gill's `generalized linear models: a unified approach` http://jgill.wustl.edu/research/books.html | STRING |
| HIGH | statsmodels/miscmodels/count.py | 0 | maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model a | STRING |
| HIGH | statsmodels/examples/ex_generic_mle_t.py | 0 | maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model a | STRING |
| HIGH | statsmodels/examples/ex_generic_mle_tdist.py | 0 | maximum likelihood estimation of poisson model this is an example for generic mle which has the same statistical model a | STRING |
| HIGH | statsmodels/miscmodels/count.py | 0 | loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- th | STRING |
| HIGH | statsmodels/examples/ex_generic_mle_tdist.py | 0 | loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- th | STRING |
| HIGH | statsmodels/examples/ex_generic_mle_t.py | 0 | loglikelihood of poisson model parameters ---------- params : array_like the parameters of the model. returns ------- th | STRING |
| HIGH | statsmodels/sandbox/examples/ex_mixed_lls_0.py | 0 | if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) > | STRING |
| HIGH | statsmodels/sandbox/examples/ex_mixed_lls_timecorr.py | 0 | if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) > | STRING |
| HIGH | statsmodels/sandbox/examples/ex_mixed_lls_re.py | 0 | if z is not included in x: >>> np.dot(b_re.t, b_re)/100 array([[ 0.03270611, -0.00916051], [-0.00916051, 0.26432783]]) > | STRING |
| HIGH | statsmodels/sandbox/distributions/extras.py | 0 | class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, i | STRING |
| HIGH | …atsmodels/sandbox/distributions/transform_functions.py | 0 | class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, i | STRING |
| HIGH | statsmodels/sandbox/distributions/transformed.py | 0 | class to hold quadratic function with inverse function and derivative using instance methods instead of class methods, i | STRING |
| HIGH | statsmodels/examples/ex_kernel_semilinear_dgp.py | 0 | created on sun jan 06 09:50:54 2013 author: josef perktold | STRING |
| HIGH | statsmodels/examples/ex_kernel_singleindex_dgp.py | 0 | created on sun jan 06 09:50:54 2013 author: josef perktold | STRING |
| 42 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/python/stl_decomposition.py | 71 | # Setting `robust` uses a data-dependent weighting function that re- | COMMENT |
| MEDIUM | examples/python/stl_decomposition.py | 73 | # robust estimation allows the model to tolerate larger errors that are | COMMENT |
| MEDIUM | examples/python/stl_decomposition.py | 85 | # Next, we estimate the model with and without robust weighting. The | COMMENT |
| MEDIUM | examples/python/stl_decomposition.py | 87 | # 2008. The non-robust estimate places equal weights on all observations and | COMMENT |
| LOW | examples/python/formulas.py | 36 | # Alternatively, you can just use the `formula` namespace of the main | COMMENT |
| MEDIUM | examples/python/treatment_effect.py | 115 | # The doubly robust estimators `aipw`, `aipw-wls`, `ipw-ra` include both | COMMENT |
| MEDIUM | examples/python/treatment_effect.py | 158 | # `ipw` for example regression adjustment `ra` and double robust `ipw_ra`. | COMMENT |
| LOW | examples/python/statespace_news.py | 125 | # just call the `forecast` method with the number of forecasts you want to | COMMENT |
| LOW | examples/python/statespace_news.py | 511 | # For the updated dataset, we'll just add in the | COMMENT |
| LOW | examples/python/statespace_news.py | 633 | # just call the `summary_details` method directly. | COMMENT |
| MEDIUM | examples/python/gee_score_test_simulation.py | 14 | # This notebook uses simulation to demonstrate robust GEE score tests. | COMMENT |
| MEDIUM | examples/python/gee_score_test_simulation.py | 16 | # about the mean structure. The tests are robust to miss-specification of | COMMENT |
| MEDIUM | examples/python/gee_score_test_simulation.py | 90 | # The GEE score test is robust to dependence and overdispersion. Here we | COMMENT |
| MEDIUM | examples/python/statespace_dfm_coincident.py | 360 | # facilitate comparison | COMMENT |
| MEDIUM | examples/python/robust_models_0.py | 59 | # See ``help(sm.RLM.fit)`` for more options and ``module sm.robust.scale`` | COMMENT |
| MEDIUM | examples/python/robust_models_0.py | 98 | # Draw a plot to compare OLS estimates to the robust estimates: | COMMENT |
| MEDIUM | examples/python/robust_models_0.py | 135 | # Draw a plot to compare OLS estimates to the robust estimates: | COMMENT |
| MEDIUM | examples/python/postestimation_poisson.py | 100 | # form which is robust to unspecified heteroscedasticity or serial or | COMMENT |
| MEDIUM⚡ | examples/python/postestimation_poisson.py | 134 | # correlation robust covariance type. | COMMENT |
| MEDIUM⚡ | examples/python/postestimation_poisson.py | 135 | # It currently uses the same implementation and defaults for the robust | COMMENT |
| MEDIUM⚡ | examples/python/postestimation_poisson.py | 143 | # corrections for heteroscedasticity and correlation robust score tests. | COMMENT |
| MEDIUM | examples/python/postestimation_poisson.py | 386 | # generalized leverage instead of the diagonal of the hat matrix in linear | COMMENT |
| MEDIUM | examples/python/linear_regression_diagnostics_plots.py | 52 | # d. leverage | COMMENT |
| MEDIUM | examples/python/linear_regression_diagnostics_plots.py | 465 | # A high leverage guideline can also be displayed using the convention: | COMMENT |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 480 | # so we just pass an empty list) | COMMENT |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 658 | # models. Here we'll just use the [arviz](https://arviz- | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 29 | # * The robust estimates $\hat{\beta}$ are computed by the iteratively re- | COMMENT |
| MEDIUM⚡ | examples/python/robust_models_1.py | 142 | # * The mean is not a robust estimator of location | COMMENT |
| MEDIUM⚡ | examples/python/robust_models_1.py | 148 | # * The median, on the other hand, is a robust estimator with a breakdown | COMMENT |
| MEDIUM⚡ | examples/python/robust_models_1.py | 156 | # * The standard deviation is not robust | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 189 | # Another robust estimator of scale is the Interquartile Range (IQR) | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 204 | # The IQR is less robust than the MAD in the sense that it has a lower | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 210 | # Yet another robust estimator of scale is the $Q_n$ estimator, introduced | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 372 | # * Why? Because M-estimators are not robust to leverage points. | COMMENT |
| MEDIUM | examples/python/robust_models_1.py | 372 | # * Why? Because M-estimators are not robust to leverage points. | COMMENT |
| MEDIUM⚡ | examples/python/influence_glm_logit.py | 69 | # and large Cook's distance, but not a large leverage. Observation 13 has | COMMENT |
| MEDIUM⚡ | examples/python/influence_glm_logit.py | 70 | # the largest leverage but only small Cook's distance and not a large | COMMENT |
| MEDIUM | examples/python/mstl_decomposition.py | 33 | # (e.g., `robust`, `seasonal_deg`, etc.). See [STL docs](https://www.statsmo | COMMENT |
| MEDIUM | examples/python/regression_plots.py | 49 | # leverage of each observation as measured by the hat matrix. | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 76 | # and reporter have low leverage but a large residual. <br /> | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 77 | # RR.engineer has small residual and large leverage. Conductor and | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 78 | # minister have both high leverage and large residuals, and, <br /> | COMMENT |
| MEDIUM | examples/python/regression_plots.py | 248 | # Closely related to the influence_plot is the leverage-resid<sup>2</sup> | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 263 | # ### Using robust regression to correct for outliers. | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 266 | # M-estimators are not robust to leverage points. MM-estimators should do | COMMENT |
| MEDIUM⚡ | examples/python/regression_plots.py | 266 | # M-estimators are not robust to leverage points. MM-estimators should do | COMMENT |
| MEDIUM | examples/python/regression_plots.py | 281 | # data=dta, M=sm.robust.norms.TukeyBiweight()).fit(conv="weights") | COMMENT |
| MEDIUM | examples/python/regression_diagnostics.py | 119 | # Useful information on leverage can also be plotted: | COMMENT |
| MEDIUM | examples/python/rolling_ls.py | 131 | # estimator) and `'HC0'` which is White's heteroskedasticity robust | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 72 | # compare with robust regression, | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 226 | # ..robust standard errors (with ols) | STRING |
| MEDIUM | statsmodels/robust/covariance.py | 1 | r"""robust location, scatter and covariance estimators | CODE |
| MEDIUM | statsmodels/robust/covariance.py | 1061 | """Iterative robust covariance estimation using weights. | STRING |
| MEDIUM | statsmodels/robust/covariance.py | 1150 | """compute some robust starting covariances | STRING |
| MEDIUM | statsmodels/robust/covariance.py | 1289 | # maybe also allow str func_scale for robust.scale, e.g. for not | COMMENT |
| MEDIUM | statsmodels/robust/covariance.py | 1347 | """Starting sets for deterministic robust covariance estimators. | STRING |
| MEDIUM | statsmodels/robust/resistant_linear_model.py | 76 | # data for robust mahalanobis distance of starting sets | COMMENT |
| MEDIUM⚡ | statsmodels/robust/tests/test_rlm.py | 394 | # than the robust scale estimate, so the recorded series did not match the | COMMENT |
| MEDIUM⚡ | statsmodels/robust/tests/test_rlm.py | 395 | # robust scale recomputed from each iteration's parameters. | COMMENT |
| MEDIUM⚡ | statsmodels/robust/tests/test_rlm.py | 400 | # psi=psi.huber, k=1.345, scale.est="MAD"): robust scale s = 2.4407 | COMMENT |
| 120 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/releasing/release_note.py | 143 | # Create a What's New Dictionary to automatically populate the template | COMMENT |
| MEDIUM | docs/source/conf.py | 5 | # This file is execfile()d with the current directory set to its | COMMENT |
| MEDIUM | docs/source/plots/graphics_functional_rainbowplot.py | 19 | # Create a rainbow plot: | COMMENT |
| MEDIUM | docs/source/plots/graphics_functional_hdrboxplot.py | 11 | # Create a HDR functional boxplot. We see that the years 1982-83 and 1997-98 are | COMMENT |
| MEDIUM | docs/source/plots/graphics_plot_fit_ex.py | 26 | # Create a plot just for the variable 'Poverty': | COMMENT |
| MEDIUM | docs/source/plots/graphics_functional_fboxplot.py | 19 | # Create a functional boxplot. We see that the years 1982-83 and 1997-98 are | COMMENT |
| MEDIUM | examples/python/formulas.py | 152 | # Define a custom function: | COMMENT |
| MEDIUM | examples/python/plots_boxplots.py | 134 | # Create a violin plot. | COMMENT |
| MEDIUM | examples/python/plots_boxplots.py | 155 | # Create a bean plot. | COMMENT |
| MEDIUM | examples/python/plots_boxplots.py | 176 | # Create a jitter plot. | COMMENT |
| MEDIUM | examples/python/plots_boxplots.py | 198 | # Create an asymmetrical jitter plot. | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 222 | # Create a figure | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 228 | # Initialize the kernel object | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 236 | # Create a subplot, set the title | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 257 | # Create a figure | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 263 | # Create a subplot, set the title | COMMENT |
| MEDIUM⚡ | examples/python/kernel_density.py | 270 | # Create the plot | COMMENT |
| MEDIUM | examples/python/statespace_news.py | 124 | # Creating the forecasts from the results object `res` is easy - you can | COMMENT |
| MEDIUM | examples/python/statespace_news.py | 188 | # Create a new results object by passing the new observations to the | COMMENT |
| MEDIUM | examples/python/statespace_news.py | 583 | # Create the news results | COMMENT |
| MEDIUM | examples/python/statespace_dfm_coincident.py | 224 | # Create the model | COMMENT |
| MEDIUM | examples/python/statespace_dfm_coincident.py | 806 | # Create the model | COMMENT |
| MEDIUM | examples/python/theta-model.py | 65 | # This module is based on: | COMMENT |
| MEDIUM | examples/python/statespace_tvpvar_mcmc_cfa.py | 390 | # Create a matrix with [y_t' : y_{t-1}'] for t = 2, ..., T | COMMENT |
| MEDIUM | examples/python/statespace_tvpvar_mcmc_cfa.py | 443 | # The above class defined the state space model for any given dataset. Now | COMMENT |
| MEDIUM | examples/python/statespace_tvpvar_mcmc_cfa.py | 449 | # Create an instance of our TVPVAR class with our observed dataset y | COMMENT |
| MEDIUM | examples/python/predict.py | 52 | # ## Create a new sample of explanatory variables Xnew, predict and plot | COMMENT |
| MEDIUM | examples/python/mstl_decomposition.py | 72 | # ### Create a toy dataset with multiple seasonalities | COMMENT |
| MEDIUM | examples/python/statespace_sarimax_pymc3.py | 108 | # Define the inflation series that we'll use in analysis | COMMENT |
| MEDIUM | examples/python/statespace_sarimax_pymc3.py | 129 | # Create an SARIMAX model instance - here we use it to estimate | COMMENT |
| MEDIUM | statsmodels/nonparametric/kernel_regression.py | 219 | # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ij | COMMENT |
| MEDIUM | statsmodels/nonparametric/kernel_regression.py | 692 | # Create the matrix on p.492 in [7], after the multiplication w/ K_h,ij | COMMENT |
| MEDIUM | statsmodels/nonparametric/tests/test_lowess.py | 233 | # Create a curve that is easy to fit at first but gets | COMMENT |
| MEDIUM | statsmodels/datasets/utils.py | 251 | # The below function were taken from sklearn | COMMENT |
| MEDIUM | statsmodels/sandbox/panel/panelmod.py | 171 | # Initialize pandas objects. | COMMENT |
| MEDIUM | statsmodels/sandbox/stats/multicomp.py | 1573 | # Create the full d matrix given all known dij vals | COMMENT |
| MEDIUM | statsmodels/imputation/mice.py | 586 | # Create an indicator matrix for missing values. | STRING |
| MEDIUM | statsmodels/examples/example_functional_plots.py | 20 | # Create a functional boxplot: | COMMENT |
| MEDIUM | statsmodels/examples/example_functional_plots.py | 40 | # Create a rainbow plot: | COMMENT |
| MEDIUM | statsmodels/examples/example_enhanced_boxplots.py | 25 | # Create a violin plot. | COMMENT |
| MEDIUM | statsmodels/examples/example_enhanced_boxplots.py | 46 | # Create a bean plot. | COMMENT |
| MEDIUM | statsmodels/examples/example_enhanced_boxplots.py | 67 | # Create a jitter plot. | COMMENT |
| MEDIUM | statsmodels/examples/example_enhanced_boxplots.py | 89 | # Create an asymmetrical jitter plot. | COMMENT |
| MEDIUM | statsmodels/examples/l1_demo/demo.py | 381 | # Create the probability of entering the different classes, | STRING |
| MEDIUM | statsmodels/examples/l1_demo/demo.py | 387 | # Create the endog | STRING |
| MEDIUM | statsmodels/examples/l1_demo/demo.py | 402 | # Create the probability of entering the different classes, | STRING |
| MEDIUM | statsmodels/examples/l1_demo/demo.py | 406 | # Create the endog | STRING |
| MEDIUM | statsmodels/examples/l1_demo/demo.py | 427 | # Create the noiseless exog | STRING |
| MEDIUM | statsmodels/genmod/cov_struct.py | 1440 | # Create the pairs and order them | COMMENT |
| MEDIUM | …atsmodels/genmod/tests/gee_poisson_simulation_check.py | 81 | # Create an exog matrix so that E[Y] = log(dot(exog1, params)) | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/structural.py | 556 | # Create a bitmask holding the level/trend specification | STRING |
| MEDIUM | statsmodels/tsa/statespace/structural.py | 565 | # Create the trend specification, if it was not given | STRING |
| MEDIUM | statsmodels/tsa/statespace/structural.py | 978 | # Create the starting parameter list | STRING |
| MEDIUM | statsmodels/tsa/statespace/structural.py | 1846 | # Create the model name | STRING |
| MEDIUM | statsmodels/tsa/statespace/_pykalman_smoother.py | 176 | # Create a temporary matrix | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/varmax.py | 548 | # Create the state covariance matrix | STRING |
| MEDIUM | statsmodels/tsa/statespace/varmax.py | 625 | # Create the state covariance matrix | STRING |
| MEDIUM | statsmodels/tsa/statespace/varmax.py | 1099 | # Create the model name | STRING |
| MEDIUM | statsmodels/tsa/statespace/varmax.py | 1189 | # Create the table | STRING |
| MEDIUM | statsmodels/tsa/statespace/dynamic_factor.py | 1169 | # Create the new axis | STRING |
| 98 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/R2nparray/R/R2nparray.R | 169 | #---------- | COMMENT |
| MEDIUM | examples/python/mixed_lm_example.py | 39 | # ======================================= | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 50 | # ---------------------------------------------------- | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 84 | # ---------------------------------------------------- | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 149 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 247 | # -------------------------- | COMMENT |
| MEDIUM | examples/incomplete/wls_extended.py | 363 | # ----------------------------------------------------------------- | STRING |
| MEDIUM | examples/incomplete/dates.py | 9 | # --------------- | COMMENT |
| MEDIUM | examples/incomplete/dates.py | 18 | # ------------ | COMMENT |
| MEDIUM | examples/incomplete/dates.py | 32 | # -------------------- | COMMENT |
| MEDIUM | statsmodels/robust/tests/test_rlm.py | 210 | # -------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tools/eval_measures.py | 355 | # --------------------- | COMMENT |
| MEDIUM | statsmodels/iolib/summary.py | 178 | # ------------------------------------ | COMMENT |
| MEDIUM | statsmodels/iolib/summary.py | 227 | # ------------- | COMMENT |
| MEDIUM | statsmodels/iolib/summary.py | 232 | # -------------- | COMMENT |
| MEDIUM | statsmodels/iolib/summary.py | 417 | # ------------------------------------ | COMMENT |
| MEDIUM | statsmodels/iolib/summary.py | 504 | # ------------------------------------ | COMMENT |
| MEDIUM | statsmodels/sandbox/descstats.py | 14 | # ============================================ | COMMENT |
| MEDIUM | statsmodels/sandbox/descstats.py | 16 | # ============================================ | COMMENT |
| MEDIUM | statsmodels/sandbox/tools/try_mctools.py | 52 | # ---------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/ex_onewaygls.py | 16 | # -------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/ex_onewaygls.py | 25 | # ---------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/ex_onewaygls.py | 191 | # ----------------------- | STRING |
| MEDIUM | statsmodels/sandbox/examples/try_gmm_other.py | 67 | # ---------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/try_gmm_other.py | 120 | # ------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/ex_cusum.py | 20 | # -------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/examples/ex_cusum.py | 28 | # ---------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/ols_anova_original.py | 327 | # ------------------- | STRING |
| MEDIUM | statsmodels/sandbox/regression/try_ols_anova.py | 200 | # ------------------------------ | STRING |
| MEDIUM | statsmodels/sandbox/regression/try_ols_anova.py | 246 | # ------------------- | STRING |
| MEDIUM | statsmodels/sandbox/regression/ar_panel.py | 137 | # ------------ | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/runmnl.py | 236 | # ------------------------------ | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/runmnl.py | 309 | # ---------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/tests/test_gmm.py | 99 | # ----------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/tests/test_gmm.py | 185 | # ----------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/regression/tests/test_gmm.py | 827 | # ------------------ | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 451 | # ----------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 490 | # --------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 522 | # ------------------------ | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 664 | # =================================================== | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 667 | # ------------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/estimators.py | 690 | # -------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/distributions/tests/test_transf.py | 104 | # ----------------------------- | COMMENT |
| MEDIUM | statsmodels/sandbox/stats/multicomp.py | 495 | # ============================ | COMMENT |
| MEDIUM | statsmodels/sandbox/stats/multicomp.py | 499 | # ============================ | COMMENT |
| MEDIUM | statsmodels/sandbox/stats/multicomp.py | 2016 | # ------------ | COMMENT |
| MEDIUM | statsmodels/examples/ex_regressionplots.py | 20 | # --------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/examples/tut_ols_ancova.py | 46 | # ------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 18 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 28 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 39 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 49 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 60 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 72 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 83 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 97 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 109 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 120 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 142 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | statsmodels/tsa/statespace/tests/results/test_ucm.R | 167 | # ---------------------------------------------------------------------------- | COMMENT |
| 53 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docstrings.py | 738 | CODE | |
| LOW | tools/validate_docstrings.py | 976 | CODE | |
| LOW | tools/validate_docstrings.py | 1043 | CODE | |
| LOW | tools/validate_docstrings.py | 372 | CODE | |
| LOW | tools/validate_docstrings.py | 512 | CODE | |
| LOW | tools/export_notebooks_to_python.py | 100 | CODE | |
| LOW | tools/releasing/enumerate-api.py | 28 | CODE | |
| LOW | tools/releasing/enumerate-api.py | 74 | CODE | |
| LOW | tools/releasing/enumerate-api.py | 113 | CODE | |
| LOW | statsmodels/conftest.py | 158 | CODE | |
| LOW | statsmodels/robust/covariance.py | 578 | CODE | |
| LOW | statsmodels/robust/robust_linear_model.py | 195 | CODE | |
| LOW | statsmodels/nonparametric/smoothers_lowess.py | 14 | CODE | |
| LOW | statsmodels/tools/web.py | 10 | CODE | |
| LOW | statsmodels/tools/rng_qrng.py | 7 | CODE | |
| LOW | statsmodels/tools/tools.py | 145 | CODE | |
| LOW | statsmodels/tools/docstring_helpers.py | 19 | CODE | |
| LOW | statsmodels/tools/docstring_helpers.py | 59 | CODE | |
| LOW | statsmodels/tools/docstring_helpers.py | 61 | CODE | |
| LOW | statsmodels/tools/rootfinding.py | 20 | CODE | |
| LOW | statsmodels/tools/docstring.py | 279 | CODE | |
| LOW | statsmodels/tools/docstring.py | 372 | CODE | |
| LOW | statsmodels/tools/docstring.py | 488 | CODE | |
| LOW | statsmodels/tools/validation/validation.py | 41 | CODE | |
| LOW | statsmodels/tools/validation/validation.py | 292 | CODE | |
| LOW | statsmodels/tools/validation/validation.py | 363 | CODE | |
| LOW | statsmodels/tools/validation/validation.py | 192 | CODE | |
| LOW | statsmodels/compat/scipy.py | 17 | CODE | |
| LOW | statsmodels/compat/_scipy_multivariate_t.py | 361 | CODE | |
| LOW | statsmodels/compat/_scipy_multivariate_t.py | 1114 | CODE | |
| LOW | statsmodels/multivariate/multivariate_ols.py | 273 | CODE | |
| LOW | statsmodels/multivariate/multivariate_ols.py | 438 | CODE | |
| LOW | statsmodels/multivariate/multivariate_ols.py | 594 | CODE | |
| LOW | statsmodels/multivariate/manova.py | 78 | CODE | |
| LOW | statsmodels/multivariate/pca.py | 319 | CODE | |
| LOW | statsmodels/multivariate/factor.py | 671 | CODE | |
| LOW | statsmodels/multivariate/factor_rotation/_wrappers.py | 17 | CODE | |
| LOW | …tsmodels/multivariate/factor_rotation/_gpa_rotation.py | 27 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 1806 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 2524 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 3966 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 4797 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 5116 | CODE | |
| LOW | statsmodels/discrete/conditional_models.py | 614 | CODE | |
| LOW | statsmodels/discrete/discrete_margins.py | 126 | CODE | |
| LOW | statsmodels/discrete/diagnostic.py | 147 | CODE | |
| LOW | statsmodels/discrete/count_model.py | 454 | CODE | |
| LOW | statsmodels/discrete/truncated_model.py | 303 | CODE | |
| LOW | statsmodels/discrete/truncated_model.py | 1223 | CODE | |
| LOW | statsmodels/datasets/utils.py | 294 | CODE | |
| LOW | statsmodels/miscmodels/ordinal_model.py | 120 | CODE | |
| LOW | statsmodels/iolib/summary.py | 672 | CODE | |
| LOW | statsmodels/iolib/summary.py | 717 | CODE | |
| LOW | statsmodels/iolib/table.py | 91 | CODE | |
| LOW | statsmodels/iolib/table.py | 309 | CODE | |
| LOW | statsmodels/iolib/table.py | 409 | CODE | |
| LOW | statsmodels/iolib/foreign.py | 13 | CODE | |
| LOW | statsmodels/gam/smooth_basis.py | 131 | CODE | |
| LOW | statsmodels/sandbox/sysreg.py | 167 | CODE | |
| LOW | statsmodels/sandbox/bspline.py | 35 | CODE | |
| 224 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/nbgenerate.py | 113 | CODE | |
| LOW | tools/nbgenerate.py | 185 | CODE | |
| LOW | examples/python/statespace_sarimax_pymc3.py | 222 | CODE | |
| LOW | examples/python/statespace_custom_models.py | 784 | CODE | |
| LOW | statsmodels/robust/tools.py | 160 | CODE | |
| LOW | statsmodels/robust/covariance.py | 572 | CODE | |
| LOW | statsmodels/robust/covariance.py | 422 | CODE | |
| LOW | statsmodels/robust/covariance.py | 789 | CODE | |
| LOW | statsmodels/robust/covariance.py | 909 | CODE | |
| LOW | statsmodels/robust/covariance.py | 1146 | CODE | |
| LOW | statsmodels/robust/covariance.py | 1475 | CODE | |
| LOW | statsmodels/robust/covariance.py | 1602 | CODE | |
| LOW | statsmodels/robust/covariance.py | 1716 | CODE | |
| LOW | statsmodels/robust/covariance.py | 1973 | CODE | |
| LOW | statsmodels/robust/covariance.py | 2181 | CODE | |
| LOW | statsmodels/robust/resistant_linear_model.py | 104 | CODE | |
| LOW | statsmodels/robust/robust_linear_model.py | 195 | CODE | |
| LOW | statsmodels/robust/scale.py | 578 | CODE | |
| LOW | statsmodels/robust/scale.py | 690 | CODE | |
| LOW | statsmodels/nonparametric/smoothers_lowess_old.py | 122 | CODE | |
| LOW | statsmodels/nonparametric/kde.py | 310 | CODE | |
| LOW | statsmodels/nonparametric/kde.py | 451 | CODE | |
| LOW | statsmodels/nonparametric/kde.py | 90 | CODE | |
| LOW | statsmodels/tools/rootfinding.py | 20 | CODE | |
| LOW | statsmodels/tools/docstring.py | 682 | CODE | |
| LOW | statsmodels/tools/_decorators.py | 82 | CODE | |
| LOW | statsmodels/tools/validation/validation.py | 41 | CODE | |
| LOW | statsmodels/compat/_scipy_multivariate_t.py | 603 | CODE | |
| LOW | statsmodels/compat/_scipy_multivariate_t.py | 650 | CODE | |
| LOW | statsmodels/multivariate/pca.py | 198 | CODE | |
| LOW | statsmodels/multivariate/factor.py | 116 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 276 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 608 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 647 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 898 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 1298 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 1528 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 2124 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 2199 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 4044 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 4127 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 4646 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 4728 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 5178 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 5276 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 5182 | CODE | |
| LOW | statsmodels/discrete/discrete_model.py | 5840 | CODE | |
| LOW | statsmodels/discrete/conditional_models.py | 112 | CODE | |
| LOW | statsmodels/discrete/conditional_models.py | 549 | CODE | |
| LOW | statsmodels/discrete/_diagnostics_count.py | 232 | CODE | |
| LOW | statsmodels/discrete/_diagnostics_count.py | 516 | CODE | |
| LOW | statsmodels/discrete/_diagnostics_count.py | 562 | CODE | |
| LOW | statsmodels/discrete/_diagnostics_count.py | 611 | CODE | |
| LOW | statsmodels/discrete/diagnostic.py | 110 | CODE | |
| LOW | statsmodels/discrete/diagnostic.py | 145 | CODE | |
| LOW | statsmodels/discrete/diagnostic.py | 261 | CODE | |
| LOW | statsmodels/discrete/count_model.py | 190 | CODE | |
| LOW | statsmodels/discrete/count_model.py | 235 | CODE | |
| LOW | statsmodels/discrete/count_model.py | 1151 | CODE | |
| LOW | statsmodels/discrete/count_model.py | 1133 | CODE | |
| 194 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | examples/python/glm.py | 28 | # In this example, we use the Star98 dataset which was taken with | COMMENT |
| HIGH | examples/python/glm_weights.py | 24 | # In this example, we'll use the affair dataset using a handful of | COMMENT |
| HIGH | examples/python/statespace_varmax.py | 94 | # uncorrelated. In this example we leave out the exogenous regressor but now | COMMENT |
| HIGH | examples/python/kernel_density.py | 32 | # In this example we will show the following: | COMMENT |
| HIGH | examples/python/statespace_news.py | 459 | # In this example, we'll consider forecasting monthly core price inflation | COMMENT |
| HIGH | examples/python/categorical_interaction_plot.py | 14 | # In this example, we will visualize the interaction between categorical | COMMENT |
| HIGH | examples/python/multivariate_ls.py | 155 | # In this example, the pvalues agree at 3 decimals. | COMMENT |
| HIGH | examples/python/wls.py | 51 | # In this example, `w` is the standard deviation of the error. `WLS` | COMMENT |
| HIGH⚡ | examples/python/influence_glm_logit.py | 68 | # In this example observation 4 and 18 have a large standardized residual | COMMENT |
| HIGH | examples/python/metaanalysis1.py | 157 | # In this example the effect size is the mean of measurements in a lab. We | COMMENT |
| HIGH | examples/python/rolling_ls.py | 148 | # available for the full window length. In this example, we start once we | COMMENT |
| HIGH | examples/python/ordinal_regression.py | 250 | # In this example, the created dummy variables `C(dummy)[0.0]` and | COMMENT |
| HIGH | examples/incomplete/ols_table.py | 14 | # Note: In this example using zscored/standardized variables has no effect on | COMMENT |
| HIGH | statsmodels/sandbox/panel/mixed.py | 643 | # # note I have written this already as helper function, get it | COMMENT |
| HIGH | …statespace/tests/test_dynamic_factor_mq_monte_carlo.py | 490 | # In this example, both endog_M and endog_Q are equal to the factors, | COMMENT |
| HIGH | …statespace/tests/test_dynamic_factor_mq_monte_carlo.py | 652 | # In this example, both endog_M and endog_Q are equal to the factors, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | statsmodels/conftest.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | statsmodels/__init__.py | 39 | __all__ = ["__version__", "__version_info__", "__version_tuple__", "test"] | CODE |
| LOW | statsmodels/api.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/robust/__init__.py | 4 | __all__ = ["Huber", "HuberScale", "hubers_scale", "mad", "norms", "test"] | CODE |
| LOW | statsmodels/robust/robust_linear_model.py | 28 | __all__ = ["RLM"] | CODE |
| LOW | statsmodels/nonparametric/kernel_regression.py | 51 | __all__ = ["KernelCensoredReg", "KernelReg"] | CODE |
| LOW | statsmodels/nonparametric/kernel_density.py | 44 | __all__ = ["EstimatorSettings", "KDEMultivariate", "KDEMultivariateConditional"] | CODE |
| LOW | statsmodels/nonparametric/api.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/tools/eval_measures.py | 653 | __all__ = [ | STRING |
| LOW | statsmodels/tools/__init__.py | 7 | __all__ = ["add_constant", "categorical", "test"] | CODE |
| LOW | statsmodels/tools/linalg.py | 5 | __all__ = ["logdet_symm", "matrix_sqrt", "stationary_solve", "transf_constraints"] | CODE |
| LOW | statsmodels/tools/_decorators.py | 7 | __all__ = [ | CODE |
| LOW | statsmodels/tools/typing.py | 42 | __all__ = [ | CODE |
| LOW | statsmodels/tools/validation/__init__.py | 14 | __all__ = [ | CODE |
| LOW | statsmodels/compat/matplotlib.py | 11 | __all__ = ["MPL_LT_310"] | CODE |
| LOW | statsmodels/compat/pandas.py | 26 | __all__ = [ | CODE |
| LOW | statsmodels/compat/__init__.py | 13 | __all__ = [ | CODE |
| LOW | statsmodels/compat/numpy.py | 45 | __all__ = [ | CODE |
| LOW | statsmodels/compat/platform.py | 5 | __all__ = [ | CODE |
| LOW | statsmodels/compat/pytest.py | 11 | __all__ = ["pytest_warns"] | CODE |
| LOW | statsmodels/compat/scipy.py | 144 | __all__ = [ | CODE |
| LOW | statsmodels/compat/python.py | 18 | __all__ = [ | CODE |
| LOW | statsmodels/multivariate/api.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/multivariate/factor_rotation/__init__.py | 29 | __all__ = [ | CODE |
| LOW | statsmodels/multivariate/factor_rotation/_wrappers.py | 14 | __all__ = [] | CODE |
| LOW | statsmodels/discrete/discrete_model.py | 19 | __all__ = [ | CODE |
| LOW | statsmodels/discrete/count_model.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/discrete/truncated_model.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/__init__.py | 44 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/statecrime/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/committee/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/engel/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/strikes/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/cpunish/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/anes96/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/heart/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/modechoice/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/randhie/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/copper/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/fertility/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/elec_equip/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/sunspots/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/china_smoking/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/star98/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/macrodata/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/scotland/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/longley/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/spector/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/cancer/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/fair/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/nile/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/ccard/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/danish_data/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/stackloss/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/elnino/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/interest_inflation/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/grunfeld/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/datasets/co2/__init__.py | 1 | __all__ = [ | CODE |
| LOW | statsmodels/miscmodels/api.py | 1 | __all__ = ["PoissonGMLE", "PoissonOffsetGMLE", "PoissonZiGMLE", "TLinearModel"] | CODE |
| LOW | statsmodels/iolib/__init__.py | 7 | __all__ = [ | CODE |
| 62 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | statsmodels/tools/tests/test_numdiff.py | 333 | CODE | |
| MEDIUM | statsmodels/tools/tests/test_numdiff.py | 334 | CODE | |
| MEDIUM | statsmodels/multivariate/multivariate_ols.py | 537 | CODE | |
| MEDIUM | statsmodels/discrete/count_model.py | 647 | CODE | |
| MEDIUM | statsmodels/discrete/count_model.py | 648 | CODE | |
| MEDIUM | statsmodels/discrete/count_model.py | 650 | CODE | |
| MEDIUM | statsmodels/discrete/count_model.py | 660 | CODE | |
| MEDIUM | statsmodels/discrete/count_model.py | 662 | CODE | |
| MEDIUM | statsmodels/discrete/tests/test_truncated_model.py | 130 | CODE | |
| MEDIUM | statsmodels/discrete/tests/test_truncated_model.py | 171 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 120 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 121 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 124 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 125 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 126 | CODE | |
| MEDIUM | statsmodels/tsa/statespace/tests/test_dynamic_factor.py | 127 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 814 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 815 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 817 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 818 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 820 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 821 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 822 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 826 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 827 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 828 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 829 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 830 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 831 | CODE | |
| MEDIUM | …dels/tsa/statespace/tests/test_simulation_smoothing.py | 832 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/validate_docstrings.py | 538 | except Exception as exc: | CODE |
| LOW | tools/nbgenerate.py | 148 | except Exception as e: | STRING |
| LOW | tools/releasing/enumerate-api.py | 64 | except Exception: | CODE |
| LOW | tools/releasing/enumerate-api.py | 105 | except Exception: | CODE |
| LOW | docs/source/conf.py | 500 | except Exception as exc: | STRING |
| LOW | examples/run_all.py | 38 | except Exception as e: | CODE |
| LOW | statsmodels/nonparametric/kde.py | 44 | except Exception as exc: | CODE |
| MEDIUM | statsmodels/nonparametric/kde.py | 41 | def _checkisfit(self): | CODE |
| LOW | statsmodels/tools/rng_qrng.py | 56 | except Exception as exc_1: | CODE |
| LOW | statsmodels/tools/validation/validation.py | 285 | except Exception as exc: | CODE |
| LOW | statsmodels/tools/validation/validation.py | 329 | except Exception: | CODE |
| LOW | statsmodels/tools/validation/validation.py | 405 | except Exception: | CODE |
| LOW | statsmodels/compat/patsy.py | 132 | except Exception: | CODE |
| MEDIUM | statsmodels/compat/patsy.py | 16 | def monkey_patch_cat_dtype(): | CODE |
| LOW | statsmodels/datasets/utils.py | 61 | except Exception: | CODE |
| LOW | statsmodels/datasets/utils.py | 155 | except Exception: | CODE |
| LOW | statsmodels/sandbox/sysreg.py | 333 | except Exception as exc: | CODE |
| LOW | statsmodels/sandbox/examples/run_all.py | 36 | except Exception as exc: | CODE |
| LOW | statsmodels/sandbox/examples/example_sysreg.py | 159 | except Exception as exc: | CODE |
| LOW | …atsmodels/sandbox/examples/thirdparty/ex_ratereturn.py | 23 | except Exception: # blanket for any unpickling error | CODE |
| MEDIUM | …atsmodels/sandbox/examples/thirdparty/ex_ratereturn.py | 24 | print("Error with unpickling, a new pickle file can be created with findow_1") | CODE |
| LOW | statsmodels/sandbox/distributions/gof_new.py | 120 | except Exception: | CODE |
| LOW | …atsmodels/sandbox/distributions/tests/check_moments.py | 102 | except Exception: | CODE |
| LOW | statsmodels/examples/ex_emplike_2.py | 91 | except Exception: | CODE |
| LOW | statsmodels/examples/ex_rootfinding.py | 98 | except Exception as e: | CODE |
| LOW | statsmodels/examples/try_tukey_hsd.py | 387 | except Exception as e: | CODE |
| LOW | statsmodels/examples/run_all.py | 72 | except Exception: | CODE |
| LOW | statsmodels/genmod/generalized_linear_model.py | 1279 | except Exception as exc: | STRING |
| LOW | statsmodels/tsa/arima_process.py | 881 | except Exception as exc: | STRING |
| LOW | statsmodels/tsa/deterministic.py | 116 | except Exception as exc: | CODE |
| LOW | statsmodels/tsa/tsatools.py | 129 | except Exception: | CODE |
| MEDIUM | statsmodels/tsa/tsatools.py | 126 | def safe_is_const(s): | CODE |
| LOW | statsmodels/tsa/ar_model.py | 1887 | except Exception as exc: | CODE |
| LOW⚡ | statsmodels/tsa/statespace/mlemodel.py | 5403 | except Exception: # FIXME: catch something specific | STRING |
| LOW⚡ | statsmodels/tsa/statespace/mlemodel.py | 5407 | except Exception: # FIXME: catch something specific | STRING |
| LOW⚡ | statsmodels/tsa/statespace/mlemodel.py | 5411 | except Exception: # FIXME: catch something specific | STRING |
| LOW | statsmodels/tsa/statespace/tests/test_save.py | 31 | except Exception: | CODE |
| LOW | statsmodels/tsa/vector_ar/util.py | 300 | except Exception: | CODE |
| MEDIUM | statsmodels/tsa/vector_ar/util.py | 297 | def get_index(lst, name): | CODE |
| LOW | statsmodels/tsa/regime_switching/markov_switching.py | 1530 | except Exception: # FIXME: catch something specific | CODE |
| LOW | statsmodels/tsa/arima/tests/test_model.py | 467 | except Exception as exc: | CODE |
| LOW | statsmodels/tsa/arima/tests/test_model.py | 477 | except Exception as exc: | CODE |
| LOW | statsmodels/tsa/stattools/_arma_order_selection.py | 43 | except Exception: # no idea what happened | CODE |
| LOW | statsmodels/tsa/holtwinters/model.py | 260 | except Exception as exc: | CODE |
| LOW⚡ | statsmodels/tsa/exponential_smoothing/base.py | 893 | except Exception: # FIXME: catch something specific | STRING |
| LOW⚡ | statsmodels/tsa/exponential_smoothing/base.py | 897 | except Exception: # FIXME: catch something specific | STRING |
| LOW⚡ | statsmodels/tsa/exponential_smoothing/base.py | 901 | except Exception: # FIXME: catch something specific | STRING |
| LOW | statsmodels/tsa/base/tsa_model.py | 557 | except Exception as exc: | CODE |
| LOW | statsmodels/graphics/gofplots.py | 231 | except Exception as exc: | CODE |
| LOW | statsmodels/graphics/gofplots.py | 263 | except Exception as exc: | CODE |
| LOW | statsmodels/base/model.py | 1183 | except Exception as exc: | CODE |
| LOW | statsmodels/stats/tabledist.py | 95 | except Exception as exc: | CODE |
| LOW | statsmodels/stats/diagnostic.py | 1078 | except Exception as exc: | STRING |
| LOW | statsmodels/stats/libqsturng/qsturng_.py | 1917 | except Exception: | CODE |
| LOW | statsmodels/stats/libqsturng/qsturng_.py | 2095 | except Exception as e: | CODE |
| LOW | statsmodels/stats/tests/test_power.py | 99 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/python/statespace_news.py | 102 | # #### Step 1: fitting the model on the available dataset | COMMENT |
| LOW | examples/python/statespace_news.py | 165 | # #### Step 2: computing the "news" from a new observation | COMMENT |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 421 | # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I) | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 198 | # Step 2: produce one-step-ahead forecasts | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 201 | # Step 3: compute root mean square forecasting error | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 253 | # Step 2: produce one-step-ahead forecasts | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 256 | # Step 3: compute root mean square forecasting error | COMMENT |
| LOW | examples/python/statespace_forecasting.py | 187 | # Step 1: fit model parameters w/ training sample | COMMENT |
| LOW | examples/python/statespace_forecasting.py | 240 | # Step 1: append a new observation to the sample and refit the parameters | COMMENT |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 859 | # Step 1: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 864 | # Step 2: convert matrices from our "partial autocorrelation matrix" space | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 902 | # Step 1: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 908 | # Step 2: convert matrices from our "partial autocorrelation matrix" | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 1437 | # Step 1: convert matrices from the space of stationary | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 1443 | # Step 2: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 181 | # Step 1: Compute long AR model via Yule-Walker, get residuals | COMMENT |
| LOW⚡ | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 191 | # Step 2: estimate ARMA model via least squares | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 237 | # Step 3: bias correction (if requested) | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/gls.py | 182 | # Step 1: OLS | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/gls.py | 207 | # Step 2 - 4: iterate feasible GLS to convergence | COMMENT |
| LOW⚡ | statsmodels/tsa/arima/estimators/gls.py | 228 | # Step 2: ARMA | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/gls.py | 294 | # Step 3: GLS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | examples/python/statespace_news.py | 102 | # #### Step 1: fitting the model on the available dataset | COMMENT |
| LOW | examples/python/statespace_news.py | 165 | # #### Step 2: computing the "news" from a new observation | COMMENT |
| LOW | examples/python/statespace_tvpvar_mcmc_cfa.py | 421 | # Step 3: Initialize the state vector as alpha_1 ~ N(0, 5I) | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 198 | # Step 2: produce one-step-ahead forecasts | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 201 | # Step 3: compute root mean square forecasting error | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 253 | # Step 2: produce one-step-ahead forecasts | COMMENT |
| LOW⚡ | examples/python/statespace_forecasting.py | 256 | # Step 3: compute root mean square forecasting error | COMMENT |
| LOW | examples/python/statespace_forecasting.py | 187 | # Step 1: fit model parameters w/ training sample | COMMENT |
| LOW | examples/python/statespace_forecasting.py | 240 | # Step 1: append a new observation to the sample and refit the parameters | COMMENT |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 859 | # Step 1: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 864 | # Step 2: convert matrices from our "partial autocorrelation matrix" space | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 902 | # Step 1: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 908 | # Step 2: convert matrices from our "partial autocorrelation matrix" | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 1437 | # Step 1: convert matrices from the space of stationary | STRING |
| LOW⚡ | statsmodels/tsa/statespace/tools.py | 1443 | # Step 2: convert from arbitrary matrices to those with singular values | STRING |
| LOW⚡ | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 181 | # Step 1: Compute long AR model via Yule-Walker, get residuals | COMMENT |
| LOW⚡ | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 191 | # Step 2: estimate ARMA model via least squares | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/hannan_rissanen.py | 237 | # Step 3: bias correction (if requested) | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/gls.py | 182 | # Step 1: OLS | COMMENT |
| LOW⚡ | statsmodels/tsa/arima/estimators/gls.py | 228 | # Step 2: ARMA | COMMENT |
| LOW | statsmodels/tsa/arima/estimators/gls.py | 294 | # Step 3: GLS | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/python/formulas.py | 43 | # Or you can use the following convention | COMMENT |
| MEDIUM | examples/python/statespace_forecasting.py | 506 | # all, like a Numpy array. However, if you can use a Pandas series with an | COMMENT |
| MEDIUM | examples/python/regression_plots.py | 132 | # For a quick check of all the regressors, you can use | COMMENT |
| MEDIUM | examples/python/regression_plots.py | 134 | # points, but you can use them to identify problems and then use | COMMENT |
| MEDIUM | examples/python/statespace_sarimax_pymc3.py | 298 | # For version <= 3.6 you can use lines=dict(res_mle.params) instead | COMMENT |
| MEDIUM | examples/python/statespace_sarimax_pymc3.py | 428 | # For version <= 3.6 you can use lines=dict(res_mle.params) instead | COMMENT |
| LOW | examples/python/statespace_custom_models.py | 753 | # .html), so make sure to check that for more details. | COMMENT |
| MEDIUM | examples/python/glm_formula.py | 14 | # This notebook illustrates how you can use R-style formulas to fit | COMMENT |
| MEDIUM | statsmodels/examples/example_discrete_mnl.py | 21 | # However, you can use other solvers | COMMENT |
| LOW | …smodels/regression/tests/results/results_regression.py | 184 | # from Stata, make sure you force double to replicate | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | statsmodels/sandbox/mcevaluate/mcresuts_arma1.txt | 7 | scikits.statsmodels.tsa.arma_mle.Arma.fit((2,0,2)) | CODE |
| CRITICAL | statsmodels/stats/outliers_influence.py | 511 | # self.results.model.family.link.deriv(self.results.fittedvalues) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | statsmodels/examples/l1_demo/short_demo.py | 48 | # Print results | COMMENT |
| LOW | statsmodels/examples/l1_demo/short_demo.py | 75 | # Print results | COMMENT |
| LOW | …odels/genmod/tests/gee_categorical_simulation_check.py | 197 | # Loop over data generating models | COMMENT |
| LOW | statsmodels/genmod/tests/gee_simulation_check.py | 259 | # Loop over data generating models | COMMENT |
| LOW | …tsmodels/genmod/tests/gee_gaussian_simulation_check.py | 264 | # Loop over data generating models | COMMENT |
| LOW | …atsmodels/genmod/tests/gee_poisson_simulation_check.py | 191 | # Loop over data generating models | COMMENT |
| LOW | statsmodels/tsa/statespace/structural.py | 436 | # Check if any of the trend/level components have been set, and | STRING |
| LOW | statsmodels/tsa/statespace/tools.py | 219 | # Check if we just have a scalar polynomial | STRING |
| LOW | statsmodels/tsa/statespace/tools.py | 222 | # Check if 1 was passed as the first argument (indicating an | STRING |
| LOW | statsmodels/tsa/statespace/representation.py | 274 | # Check if k_endog is actually the endog array | STRING |
| LOW | statsmodels/tsa/statespace/dynamic_factor_mq.py | 2687 | # Print output every `disp` observations | STRING |
| LOW | statsmodels/tsa/regime_switching/markov_switching.py | 766 | # Check if we need to do weighted averaging | COMMENT |
| LOW | statsmodels/tsa/base/tsa_model.py | 202 | # Check if we now have a modified index | COMMENT |
| LOW | statsmodels/regression/process_regression.py | 848 | # Check if the group exists, since _groups_ix is a | STRING |
| LOW | statsmodels/duration/tests/results/phreg_gentests.py | 26 | # Set this to get a reasonable amount of censoring | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | statsmodels/imputation/mice.py | 593 | # Order the columns as requested | STRING |
| HIGH | statsmodels/imputation/mice.py | 609 | # Order the rows as requested | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | statsmodels/tsa/statespace/exponential_smoothing.py | 164 | # TODO: add validation for bounds (e.g. have all bounds, upper > lower) | COMMENT |
| LOW | statsmodels/regression/tests/test_lme.py | 32 | # TODO: add tests with unequal group sizes | COMMENT |
| LOW | statsmodels/regression/tests/test_robustcov.py | 27 | # TODO: implement test_hac_simple | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …s/genmod/tests/results/test_get_R_tweedie_var_weight.R | 4 | # Usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | statsmodels/tools/tests/test_web.py | 26 | def test_function(self): | CODE |