diff_diff.SimulationSampleSizeResults#
- class diff_diff.SimulationSampleSizeResults[source]#
Bases:
objectResults from simulation-based sample size search.
- effective_n_units#
Effective sample size when it differs from
required_n(e.g., due to DDD grid rounding).Nonewhen no rounding occurred or when the search already snapped to the estimator’s grid.- Type:
int or None
Methods
__init__(required_n, power_at_n, ...[, ...])summary()Generate a formatted summary.
to_dataframe()Convert results to a single-row DataFrame.
to_dict()Convert results to a dictionary.
Attributes
survey_config- __init__(required_n, power_at_n, target_power, alpha, effect_size, n_simulations_per_step, n_steps, search_path, estimator_name, effective_n_units=None, survey_config=None)#
- classmethod __new__(*args, **kwargs)#