Skip to content

Profiles and sweeps

Profiles and sweeps compute the probability of the targets from the network for participants with specified values, with a bootstrap interval. Define them in the analyses block of settings.yml.

Profiles

A profile is a group defined by values of one or more variables:

analyses:
  profiles:
    network: all_variables
    targets: [OUTCOME]
    groups:
      "Younger, low exposure":
        AGE: 50
        EXPOSURE_A: 30
        EXPOSURE_B: "No"
      "Older, high exposure":
        AGE: 70
        EXPOSURE_A: 60
        EXPOSURE_B: "Yes"

Profiles

A number is assigned to the bin that contains it, and the report lists the bin that was used. AGE: 50 refers to the bin that contains 50. A category is matched by name. A bin can also be specified by its label in the bins table, for example "≥ 66.7".

Sweeps

A sweep varies one variable across all its states while other variables are held fixed:

  sweep:
    network: all_variables
    variable: EXPOSURE_A
    fixed:
      AGE: 60
      SEX: Female
    targets: [OUTCOME]

Sweep

Fix only variables in earlier layers

Fix only variables that precede the varied variable in the layer order. If a fixed variable lies between the varied variable and the target, it blocks the path and the curve becomes flatter. The run reports this when it occurs.

For interpretation, see Profiles and sweeps in Reading the results.