identification_analysis
Signature/Parameters
def identification_analysis(self, exposure = None, outcome = None, conditional = None, causal_probability = 'maybe', iv = 'maybe', verbose = True)
Run identification analysis for the specified exposure-outcome pair.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exposure
|
str or list[str] or None
|
Exposure variable(s) of interest. When |
None
|
outcome
|
str or None
|
Outcome variable. Defaults to the first DAG outcome role when omitted. |
None
|
conditional
|
str or list[str] or None
|
Variables to condition the causal effect on. Strings are promoted to single-element lists. |
None
|
causal_probability
|
(always, maybe)
|
Controls whether causal probabilities are computed. With |
'always'
|
iv
|
(always, maybe)
|
Identification using instrumental variable. Use |
'always'
|
verbose
|
bool
|
When |
True
|
Returns:
| Type | Description |
|---|---|
None
|
|
Notes
Results printed and can be retrieved using
Examples:
>>> G = DAG(graph="X -> Y")
>>> G.identification_analysis(exposure="X", outcome="Y", verbose=False)
>>> G.identification_analysis(exposure="X", outcome="Y", verbose=False)
>>> G.identification() # to print
>>> G.print('identification') # to print
>>> G.identification_dict # dictionary