Several networks¶
A single run can fit several networks, for example to assess the effect of leaving out a layer or a variable. Each network is learned and bootstrapped separately, and the report compares the stability of each arc across the networks.
networks:
- name: all_variables
description: All variables in the design table.
- name: without_exposures
description: The same, without the exposure layer.
exclude_layers: [Exposures]
resamples: 50 # optional: number of resamples for this network
| Key | Description |
|---|---|
name |
Used in file names and in the report. |
description |
Shown in the report. |
exclude_layers |
Layers to leave out. The order of the other layers is unchanged. |
exclude_variables |
Individual variables to leave out. |
resamples |
Overrides bootstrap: resamples for this network. |
Without a networks block, one network with all variables is learned. To run a single
network, use layerbn run my-study --network without_exposures.
Interpreting differences
An arc that is only present when a layer is left out may be explained by a variable in that layer, such as a mediator or a common cause. See Comparing networks.