diff_diff.PowerResults#
- class diff_diff.PowerResults[source]#
Bases:
objectResults from analytical power analysis.
Methods
__init__(power, mde, required_n, ...[, rho, ...])print_summary()Print the summary to stdout.
summary()Generate a formatted summary of power analysis results.
to_dataframe()Convert results to a pandas DataFrame.
to_dict()Convert results to a dictionary.
Attributes
- __init__(power, mde, required_n, effect_size, alpha, alternative, n_treated, n_control, n_pre, n_post, sigma, rho=0.0, deff=1.0, design='basic_did')#
- classmethod __new__(*args, **kwargs)#