moderndid.FLCIResult#

class moderndid.FLCIResult(flci: tuple[float, float], optimal_vec: ndarray, optimal_pre_period_vec: ndarray, optimal_half_length: float, smoothness_bound: float, status: str)[source]#

Bases: NamedTuple

Container for fixed-length confidence interval results.

Attributes:
flcituple[float, float]

The fixed-length confidence interval as (lower, upper).

optimal_vecnumpy.ndarray

The optimal weight vector over all periods used to construct the affine estimator.

optimal_pre_period_vecnumpy.ndarray

The optimal weight vector restricted to pre-treatment periods.

optimal_half_lengthfloat

The half-length of the confidence interval.

smoothness_boundfloat

The smoothness bound M used in the computation.

statusstr

Optimization status from the solver.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

flci

Fixed-length confidence interval as (lower, upper).

optimal_half_length

Half-length of the confidence interval.

optimal_pre_period_vec

Optimal weight vector restricted to pre-treatment periods.

optimal_vec

Optimal weight vector over all periods.

smoothness_bound

Smoothness bound M used in the computation.

status

Optimization status from the solver.