Repository navigation
Description
-
- doesn't specify what default
methodis, same forconfint_proportions_2indep - use different font style for math
or - value = 0, initially I didn't see that "or" is a statistic, not just the word
- doesn't specify what default
-
Does
power_proportions_2indepcorrespond to one of the testmethods ? I guess not, maybe wald. -
- default docstring for fit method doesn't show Parameters, Returns
update fixed by removing GenericLikelihoodModel docstring, inherits docs from LikelihoodModel.fit predictmethod, missing docstring,, no explanation for "which"
- default docstring for fit method doesn't show Parameters, Returns
-
- no docstrings in generated docs
- (refactor, maybe change to capitalized name for class)
-
- also only non-informative generic docstring
- OrderedResults, no class docstring, no description line
- predict and similar that have results for all choices/cells: Docstrings for methods do not methion if "remainder" choice is included, i.e. (nobs, k) or (nobs, k-1) (I don't know right now without looking at and example)
-
https://www.statsmodels.org/dev/distributions.html#copula
list of copula functions should include depfunc_ev and transforms BUG/REF/ENH copula for 0.13 follow-up #7629 (comment) -
https://www.statsmodels.org/dev/other_models.html doc problems with Beta regression ENH/REF Beta Regression follow-up #7584
- add to index.rst
- BetaModel docstring doesn't show in html docs https://www.statsmodels.org/dev/generated/statsmodels.othermod.betareg.BetaModel.html#statsmodels.othermod.betareg.BetaModel why ?
- no Results class docstring
- typos, eg.
otherinstead ofothermodin text
-
(ultra) high screening is still missing from docs DOC: (ultra-high) screening is missing in docs #7505
not included: -
https://www.statsmodels.org/dev/generated/statsmodels.stats.moment_helpers.cov2corr.html parameter is under returns
-
...
-
no "bernstein" in online docs
-
old weightstats also needs doc review, e.g. df in ztest in CompareMeans
Activity
josef-pkt commentedon Sep 8, 2021
references to literature and to docs of other packages is missing in several functions, e.g. 2 sample proportion
josef-pkt commentedon Sep 8, 2021
https://www.statsmodels.org/dev/generated/statsmodels.stats.outliers_influence.GLMInfluence.summary_frame.html
says
The resultant DataFrame contains six variables in addition to the dfbetasbut then lists only 4plot_index could get an example like plot_inluence
josef-pkt commentedon Sep 9, 2021
https://www.statsmodels.org/dev/generated/statsmodels.stats.power.FTestAnovaPower.power.html
should be more explicit that
nobsis total nobs, sum over all groups.and that effect size is Cohen's f
(I guess docstrings were mostly copy-paste, but because they are copied, we can adjust them.)
Confusion about nobs and effect size (f2 versus f) in
https://stats.stackexchange.com/questions/544027/different-results-for-anova-power-calculation-by-r-and-statsmodels/544144#544144
FTestAnovaPower.power should also get a "see also" cross-link to the oneway effectsize function
josef-pkt commentedon Sep 10, 2021
https://www.statsmodels.org/dev/generated/statsmodels.stats.proportion.proportions_ztest.html
The Notes section points to equivalence to proportions_chisquare test. However, we need to adjust prop_var for that, at least in the one sample case. Unit tests also have an example for equivalence in 2 sample case (without prop_var? I didn't verify that.)
https://stackoverflow.com/questions/69133025/when-to-use-chisquare-or-a-simple-teste-for-proportion/69133640#69133640
update
two sample case doesn't need prop_var. What's the difference to one-sample case?
The ztest uses the pooled variance which is the null estimate if value=0 (assumption equal proportion).
This is not the null if value is different from zero.
chisquare test only allows the null of identical proportions (i.e. value = 0 across columns of contingency table)
We need "See Also" in proportions_ztest to the new 2-sample proportion functions, which e.g. allow for score test when value != 0, and includes or and rr besides diff.
Related:
older stats.stackexchange complaint about documenting defaults
https://stats.stackexchange.com/questions/447462/why-does-the-proportions-ztest-function-in-statsmodels-produce-different-values?rq=1
josef-pkt commentedon Sep 15, 2021
aside: we get warnings during sphinx doc build about invalid sections like Returns in class docstrings
one example is OLSInfluence
my guess now:
Attributes, cached properties are automatically included in the class docstring.
(cached properties show up twice? once in text list, once in list with links)
Some docstrings for cached properties contain those sections that show up in the sdoc build warning,
e.g.
OLSInfluence.dffitshas Returns and References section.The section headers are ignored by doc rendering, e.g. see Attributes section in https://www.statsmodels.org/dev/generated/statsmodels.stats.outliers_influence.OLSInfluence.html
However:
cached properties are correctly documented as Properties (list of links), e.g.
https://www.statsmodels.org/dev/generated/statsmodels.stats.outliers_influence.OLSInfluence.dffits.html
another example
OLSResults has 5 warnings for
Notessection.The 4 HCx_xe cached attributes inherited from RegressionResults have Notes sections. I cannot find a 5th.
josef-pkt commentedon Sep 15, 2021
copula docstrings need more proof reading
https://www.statsmodels.org/dev/generated/statsmodels.distributions.copula.api.CopulaDistribution.html
Parameters for copula mentions
strwhich is not allowed anymorejosef-pkt commentedon Sep 16, 2021
Having no docstring and inherit is better than a stub docstring
GenericLikelihoodModel.fit has a minimal stub docstring.
I think, if we delete it, then we get automtically the full docstring from the super class. It looks that way in recent doc updates.
update
Maybe not from_formula doesn't inherit docstring
https://www.statsmodels.org/dev/generated/statsmodels.miscmodels.ordinal_model.OrderedModel.from_formula.html
is empty
But in copulas inheritance worked
josef-pkt commentedon Sep 22, 2021
generic LikelihoodModel.fit docstring is missing
Returnssectione.g https://www.statsmodels.org/dev/generated/statsmodels.miscmodels.ordinal_model.OrderedModel.fit.html
josef-pkt commentedon Sep 22, 2021
unit tests for
stats.effectsizenoncentrality doesn't say which R package and function was used for comparison numbershttps://github.com/statsmodels/statsmodels/pull/7084/files#diff-59cc153bd2f07e8cd6c715eb31ffff704862c4dbe7814141b43e6dfdec6fc3ebR17
josef-pkt commentedon Oct 9, 2024
CountDiagnostic and PoissonDiagnostic are missing in docs
(MLEInfluence is in docs and in see also of get_influence function that I checked)