ENH/Design: pattern for simulate_power functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing PR #6526 and the existing ANOVA and equivalence-ANOVA power calculations. Define the shared simulation inputs and how null and alternative values are represented, including test options such as value and method. Done requires a settled API and simulated-power functions that cover cases such as trimmed ANOVA and trim_frac.
Written by the indexing model from the issue text.
Description
For PR #6526 I spent some time simulating power for anova and equivalence-anova to verify the theoretical power computation. This could be dressed up in functions for the users so they can simulate the power for different cases, e.g. trimmed anova, option trim_frac, is not yet supported by the power calculation.
For simple cases a simulate_xxx_power function wouldn't require a complicated setup. We need
- options for the hypothesis test including
valueif nonzero and method options - part of dgp that is common to null and alternative, distribution of data, variances, ...
- values that differ between alternative and null, either as given values for alternative or specified as diff to the null.
- parts that are invariant for power computation can be unspecified and hard coded , e.g. actual value of common mean in anova under the null is irrelevant for power and can be set to zero.
I never looked closely at what packages in R are doing.
- Dominant language
- Python
- Stars
- 11.6k
- Forks
- 3.6k
- Avg merge
- 7h 37m
- Merged PRs (30d)
- 96
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from statsmodels/statsmodels
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
statsmodels/statsmodels#10271 ·
-
type-bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
statsmodels/statsmodels#10269 ·
-
Documentation
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
statsmodels/statsmodels#10266 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
statsmodels/statsmodels#9627 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
statsmodels/statsmodels#9293 · 1 comment ·
All issues in statsmodels/statsmodels
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100