diff_binom_confint.ConfidenceInterval#
- class diff_binom_confint.ConfidenceInterval(lower_bound: float, upper_bound: float, estimate: float, level: float, method: str, sides: str = 'two-sided', digits: int = 7)[source]#
- Dataclass for holding meta information of a confidence interval. - sides#
- Sides of the confidence interval, should be one of - “two-sided” (aliases “2-sided”, “two_sided”, “2_sided”, “2-sides”, “two_sides”, “two-sides”, “2_sides”, “ts”, “t”, “two”, “2”), 
- “left-sided” (aliases “left_sided”, “left”, “ls”, “l”), 
- “right-sided” (aliases “right_sided”, “right”, “rs”, “r”), 
 - case insensitive. - Type:
- str, default “two-sided” 
 
 - digits#
- Number of digits to round the confidence interval to in the string representation. - Type:
- int, default 7 
 
 - __init__(lower_bound: float, upper_bound: float, estimate: float, level: float, method: str, sides: str = 'two-sided', digits: int = 7) None#
 - Methods - __init__(lower_bound, upper_bound, estimate, ...)- asdict()- astable([to, digits])- Return the confidence interval as a table (dataframe). - astuple()- Attributes