geostep.analyzer.DiDAnalyzer

class geostep.analyzer.DiDAnalyzer(config: AnalyzerConfig | None = None)

Compare equal-geo pre/post changes in outcome units.

Methods

__init__([config])

Initialize analyzer with configuration.

analyze(df, **kwargs)

Validate, prepare and analyse; failures cannot become successful results.

check_balance(df, geo_col, assignment_col, ...)

Check one prespecified pre-treatment covariate summary per geo.

enable_monitoring([enabled])

Enable or disable performance monitoring.

get_metrics()

Get performance and execution metrics.

monitor_operation(operation_name[, ...])

Context manager for monitoring operations.

post_process_result(result)

Post-process analysis results.

prepare_data(df, **kwargs)

Prepare data for analysis.

set_metrics_collector(collector)

Set the metrics collector for this instance.

validate_inputs(df, **kwargs)

Validate input data and parameters.

Attributes

result_type

alias of DiDResult