You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anova.py
api.py
base.py
contingency_tables.py
contrast.py no direct user conten
correlation_tools.py
descriptivestats.py
diagnostic.py
dist_dependence_measures.py missing in api
gof.py
inter_rater.py missing?
knockoff_regeffects.py
libqsturng mainly internal, but can be publicly used for pvalues and critical values
mediation.py
meta_analysis.py new
moment_helpers.py
multicomp.py
multitest.py
multivariate.py new
multivariate_tools.py
nonparametric.py new-soon
oaxaca.py
oneway.py new
outliers_influence.py mostly model support, but standalone functions
power.py
proportion.py
rates.py new
regularized_covariance.py ?
robust_compare.py new
sandwich_covariance.py
stattools.py
tabledist.py mainly internal
weightstats.py
_adnorm.py
_diagnostic_other.py
_knockoff.py
_lilliefors.py
_lilliefors_critical_values.py
I think we could remove the individual functions from sandwich_covariance from stats/api.py
But it might not be really worth it to break backwards compatibility (unlikely though that is). Wait dill sandwiches get a refactoring.
from . import sandwich_covariance
from .sandwich_covariance import (
cov_cluster, cov_cluster_2groups, cov_nw_panel,
cov_hac, cov_white_simple,
cov_hc0, cov_hc1, cov_hc2, cov_hc3,
se_cov
)
current status, I already fixed proportion, rates, and multivariate (not in a commit yet)
Still several modules missing in api, inter_rater, dist_dependence_measures, meta_analysis, ...
Some may not yet be public like diagnostic_gen (API unclear), or doubtful gof.
Some only for model support sandwich_covariance, influence via get_influence ?
Should we put in api only the main public functions that have main access through stats?
I'm adding inline comments, e.g. "ADD AnovaRM"
import statsmodels.stats.api as statsapi
stats_items = dir(statsapi)
import importlib
for modn in mod_names:
print()
print(modn)
#module = getattr(statsmodels.stats, modn)
module = importlib.import_module("statsmodels.stats." + modn)
m = [i for i in dir(module) if i not in stats_items and not i[0] == "_"]
print(", ".join(m))
m
anova ADD AnovaRM, others are helpers
AnovaRM, AnovaResults, DataFrame, Index, OLS, anova1_lm_single, anova2_lm_single, anova3_lm_single, anova_single, lrange, np, patsy, pd, stats, summary2
contingency_tables DONE
cache_readonly, iolib, np, pd, sm_exceptions, stats, warnings
contrast NOT, internal usage
Contrast, ContrastResults, MultiCompResult, WaldTestResults, clean0, contrastfromcols, fdist, fullrank, np, stats, student_t, t_test_multi, t_test_pairwise, wald_test_noncent, wald_test_noncent_generic
correlation_tools ???
Bunch, GaussianMultivariateKernel, IterationLimitWarning, MultivariateKernel, clip_evals, fminbound, iteration_limit_doc, kernel_covariance, np, sparse, svds, warnings
descriptivestats CLEAN, too many foreign names left in module
Appender, CATEGORICAL_STATISTICS, DEFAULT_STATISTICS, DEPRECATION_MSG, Description, Docstring, MISSING, NUMERIC_STATISTICS, PANDAS, PERCENTILES, Parameter, QUANTILES, Sequence, SimpleTable, Union, array_like, bool_like, cache_readonly, describe, ds, float_like, int_like, is_categorical_dtype, is_numeric_dtype, lmap, lrange, nancount, nankurtosis, nanpercentile, nanptp, nanskewness, nanuss, np, pd, pd_percentiles, pd_ptp, sign_test, stats, warnings
diagnostic ADD, main function is kstest_fit, lillifors (included in api) is alias
Iterable, NESTED_ERROR, OLS, RegressionResultsWrapper, ResultsStore, anderson_statistic, array_like, bool_like, deprecate_kwarg, dict_like, float_like, int_like, kstest_exponential, kstest_fit, kstest_normal, lagmat, np, pd, stats, string_like
diagnostic_gen LIKELY NOT in 0.13
HolderTuple, cov_multinomial, np, prob_larger_2ordinal, prob_larger_ordinal_choice, stats, test_chisquare_binning, var_multinomial
dist_dependence_measures ???
DistDependStat, HypothesisTestWarning, distance_correlation, distance_covariance, distance_covariance_test, distance_statistics, distance_variance, namedtuple, norm, np, pdist, squareform, warnings
effect_size NOTHING
Holder, np, special
gof ???
chisquare, chisquare_power, gof_binning_discrete, lrange, np, stats
inter_rater ADD all
KappaResults, ResultsBunch, aggregate_raters, cohens_kappa, fleiss_kappa, np, stats, to_table
knockoff_regeffects ADD? needed for use in knockoff
CorrelationEffects, ForwardEffects, OLSEffects, RegModelEffects, RegressionEffects, np
mediation DONE
MediationResults, maybe_name_or_idx, np, pd
meta_analysis ADD all
CombineResults, HolderTuple, combine_effects, effectsize_2proportions, effectsize_smd, np, pd, stats
moment_helpers NOT ? module itself is included in api
comb, corr2cov, cov2corr, cum2mc, mc2cum, mc2mnc, mc2mvsk, mnc2cum, mnc2mc, mnc2mvsk, mvsk2mc, mvsk2mnc, np
multicomp ? why are they not included, difference between tukeyhsd and pairwise_tukeyhsd ?
MultiComparison, pairwise_tukeyhsd
multitest DONE
a, m, multitest_alias, multitest_methods_names, np
multivariate DONE
multivariate_tools ???
Bunch, cancorr, cc_ranktest, cc_stats, np, partial_project
nonparametric ADD, is there overlap with diagnostic_gen
HolderTuple, RankCompareResult, cohensd2problarger, np, prob_larger_continuous, rank_compare_2indep, rank_compare_2ordinal, rankdata, rankdata_2samp, stats
oaxaca
OLS, OaxacaResults, add_constant, dedent, np
oneway DONE
outliers_influence
Appender, GLMInfluence, MLEInfluence, OLS, OLSInfluence, cache_readonly, defaultdict, lzip, maybe_unwrap_results, np, outlier_test, reset_ramsey, summary_table, variance_inflation_factor
power ? normal_power_het, normal_sample_size_one_tail are new(ish)
Power, brentq_expanding, ftest_anova_power, ftest_power, normal_power, normal_power_het, normal_sample_size_one_tail, np, optimize, stats, ttest_power
proportion DONE
AllPairsResults, score_test_proportions_2indep, std_prop
rates DONE
regularized_covariance ADD
OLS, RegularizedInvCovariance, np
robust_compare ADD
TrimmedMean, np, numbers, scale_transform, trim_mean, trimboth
sandwich_covariance
S_crosssection, S_hac_groupsum, S_hac_simple, S_nw_panel, S_white_simple, combine_indices, cov_crosssection_0, cov_hac_simple, cov_nw_groupsum, group_sums, kernel_dict, lagged_groups, np, weights_bartlett, weights_uniform
stattools ADD
ValueWarning, expected_robust_kurtosis, medcouple, np, robust_kurtosis, robust_skewness, stats
tabledist IGNORE
Rbf, TableDist, cache_readonly, interp1d, interp2d, np
weightstats DONE
cache_readonly, np, stats
specific: from ._knockoff import RegressionFDR (in api.py) private module with public class
Classes in knockoff_regeffects are not included in api, neither module itself.
Those classes are needed to create a RegressionFDR instance, similar to families, links, norms.
sandwich_covariance functions are included from stats: .. currentmodule:: statsmodels.stats
anova is separate in rst files.
contingency_tables is in separate contingency_tables.rst
contrast, tabledist are internal
that leaves as not included in rst docs:
'diagnostic_gen', I'm not sure about api yet, I haven't reviewed api, largely in support of get_diagnostic
'effect_size', has no public functions, _noncentrality_xxx where xxx is t, f and chisquare
'multivariate_tools', contains partial_project, and older, semi-obsolete cancor functions
'regularized_covariance',
Activity
josef-pkt commentedon Sep 1, 2020
here is a list of the current content of
dir(stats.api), without__objectsjosef-pkt commentedon Sep 1, 2020
e.g. inter-rater is not in api
current modules in directory
josef-pkt commentedon Dec 1, 2020
user looking for proportion in api
https://stackoverflow.com/questions/65094930/module-statsmodels-stats-api-has-no-attribute-proportion
josef-pkt commentedon Sep 18, 2021
bump
I just found again missing in stats.api, e.g. no oneway, no proportion_2indep
I have PR for those coming
josef-pkt commentedon Sep 18, 2021
I think we could remove the individual functions from sandwich_covariance from stats/api.py
But it might not be really worth it to break backwards compatibility (unlikely though that is). Wait dill sandwiches get a refactoring.
josef-pkt commentedon Sep 18, 2021
compare module content with stats.api list
current status, I already fixed proportion, rates, and multivariate (not in a commit yet)
Still several modules missing in api, inter_rater, dist_dependence_measures, meta_analysis, ...
Some may not yet be public like diagnostic_gen (API unclear), or doubtful
gof.Some only for
modelsupport sandwich_covariance, influence via get_influence ?Should we put in api only the main public functions that have main access through
stats?I'm adding inline comments, e.g. "ADD AnovaRM"
specific:
from ._knockoff import RegressionFDR(in api.py) private module with public classClasses in
knockoff_regeffectsare not included in api, neither module itself.Those classes are needed to create a RegressionFDR instance, similar to families, links, norms.
josef-pkt commentedon Sep 19, 2021
another check:
module names that don't show up in
stats.rstin a line with "currentmodule"['anova',
'contingency_tables',
'contrast',
'diagnostic_gen',
'effect_size',
'multivariate_tools',
'regularized_covariance',
'sandwich_covariance',
'tabledist']
sandwich_covariance functions are included from
stats:.. currentmodule:: statsmodels.statsanova is separate in rst files.
contingency_tables is in separate
contingency_tables.rstcontrast, tabledist are internal
that leaves as not included in rst docs:
'diagnostic_gen', I'm not sure about api yet, I haven't reviewed api, largely in support of get_diagnostic
'effect_size', has no public functions,
_noncentrality_xxxwhere xxx is t, f and chisquare'multivariate_tools', contains partial_project, and older, semi-obsolete cancor functions
'regularized_covariance',
RegularizedInvCovariance is not found in rst/html docs, needs to be added, I guess to https://www.statsmodels.org/dev/stats.html#moment-helpers
The others can stay out of docs for 0.13
josef-pkt commentedon Nov 1, 2024
notebook for checking is
maint_check_api_doc.ipynb,the version on my computer was modified 2023-02-02
The "ADD" in the above comment #7013 (comment) are still missing in api.py (I only checked a few).