Repository navigation
docs(stats): clarify TukeyHSD reject and pvalues access - #9956
Conversation
bashtage
left a comment
There was a problem hiding this comment.
It would be good to ensure that the RST is valid
| calculations, including adjusted p-value | ||
| calculations, including adjusted p-value. | ||
|
|
||
| The boolean reject decisions and numeric adjusted p-values are |
There was a problem hiding this comment.
Could you check that this is valid RST? I don't think this is. Perhaps use an unordered list?
There was a problem hiding this comment.
Actually, could you move the attributes to the notes section as an unordered list and then add an example using an example section where you access the attributes.
| calculations, including adjusted p-value | ||
| calculations, including adjusted p-value. | ||
|
|
||
| The boolean reject decisions and numeric adjusted p-values are |
There was a problem hiding this comment.
Actually, could you move the attributes to the notes section as an unordered list and then add an example using an example section where you access the attributes.
|
Addressed the RST feedback in |
Document that pairwise_tukeyhsd results expose boolean `reject` and numeric adjusted `pvalues`, plus `summary()` / `summary_frame()` for tabular access (#2346). Fixes #2346 Signed-off-by: Solaris-star <[email protected]>
Signed-off-by: Solaris-star <[email protected]>
eb9ca11 to
adcca2b
Compare
|
Thanks, the AI Disclosure section looks complete. |
bashtage
left a comment
There was a problem hiding this comment.
Thanks for the doc fixes. Could I kindly ask you to fix the docstring a bit more?
| q_crit : critical value of studentized range statistic at given alpha | ||
| halfwidths : half widths of simultaneous confidence interval | ||
| pvalues : adjusted p-values from the HSD test | ||
| pvalues : adjusted p-values from the HSD test (numeric floats; use this |
There was a problem hiding this comment.
This doc string overall needs a lot fo work. The correct style is
attribute : type
Description
For example
reject : array
A boolean array that is True if we reject Null for group pair
Could you have a pass at all attributes?
Address review feedback: expand all 18 attributes with proper numpy docstring format (name : type + description) and add short descriptions under each See Also reference. Closes GH-2346 Signed-off-by: Solaris-star <[email protected]>
|
已更新
CI 正在重新运行,等待完成。 |
|
We mostly ask for English in comments if that is ok. |
|
Thanks — English is fine. I updated the current head I have not claimed a local full-suite run; the remaining blocker is your review of the final docstring wording. |
|
Thanks |
Summary
#2346 asks how to retrieve Tukey HSD reject decisions and numeric p-values. These already exist on
TukeyHSDResults(reject,pvalues,summary(),summary_frame()), but the public wrapper docstring did not spell out the access path.Fix
Document attribute / table access on
pairwise_tukeyhsdand clarify thatpvaluesare the numeric adjusted p-values.Verification
Notessection as an unordered list.Examplessection accessesrejectand roundedpvalues.git diff --checkpasses.upstream/main.Fixes #2346
NumPy's guide.
AI Disclosure
Contributions must comply with the statsmodels AI Policy.
If using AI tools, edit the second option to explain which tool was selected and
how the tool's output was used.
Please complete one of the following:
Tool(s):
Hermes Agent.Used for: investigating maintainer feedback, editing docstrings, running verification commands, and preparing signed commits.
I have personally read, understood, and can explain every line of this diff, and
have verified the statistical/numerical correctness of the change.
Details
Notes:
needed for doc changes.
then show that it is fixed with the new code.
verify you changes are well formatted by running
flake8is installed. This command is also available on Windowsusing the Windows System for Linux once
flake8is installed in thelocal Linux environment. While passing this test is not required, it is good practice and it help
improve code quality in
statsmodels.AI Policy for what
disclosure and review is expected of you before submitting.