diff_diff.BusinessContext#

class diff_diff.BusinessContext[source]#

Bases: object

Frozen bundle of business-framing metadata used when rendering prose.

Populated from BusinessReport constructor kwargs. Falls back to neutral labels when fields are not supplied.

Methods

__init__(outcome_label, outcome_unit, ...)

Attributes

outcome_label

outcome_unit

outcome_direction

business_question

treatment_label

alpha

__init__(outcome_label, outcome_unit, outcome_direction, business_question, treatment_label, alpha)#
Parameters:
  • outcome_label (str)

  • outcome_unit (str | None)

  • outcome_direction (str | None)

  • business_question (str | None)

  • treatment_label (str)

  • alpha (float)

Return type:

None

classmethod __new__(*args, **kwargs)#