We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02e33f4 commit 7e70730Copy full SHA for 7e70730
causal_testing/testing/base_test_case.py
@@ -1,5 +1,6 @@
1
from dataclasses import dataclass
2
from causal_testing.specification.variable import Variable
3
+from causal_testing.testing.effect import Effect
4
5
6
@dataclass(frozen=True)
@@ -10,4 +11,4 @@ class BaseTestCase:
10
11
12
treatment_variable: Variable
13
outcome_variable: Variable
- effect: str = "total"
14
+ effect: str = Effect.total.value
causal_testing/testing/effect.py
@@ -0,0 +1,7 @@
+from enum import Enum
+
+class Effect(Enum):
+ "An enumeration of allowable effect types."
+ total = "total"
7
+ direct = "direct"
0 commit comments