bayesplain.teach.PrecisionPlan¶
-
class bayesplain.teach.PrecisionPlan(required_n, target_width, expected_rate, level, schedule, prior=
None, sd=None, groups=1, unit='')[source]¶ How much data a target precision requires.
- Variables:¶
- required_n¶
Observations needed to reach the target width – per group, when planning a comparison of two groups.
- target_width¶
The interval width that was asked for.
- expected_rate¶
The rate the calculation assumed, or
Nonewhen planning for an average.- level¶
Credible level.
- schedule¶
(n, width)pairs along the way.- prior=
None¶ The prior assumed.
- sd=
None¶ The standard deviation assumed, when planning for an average.
- groups=
1¶ 1 for a single estimate, 2 for a difference between groups.
- unit=
''¶ Display unit for widths, when planning for an average.
Methods
summary()Report the required sample size and the trade-off around it.