Race and ethnicity, sex, family SES, and adult SES

bayesian-social-statistics-python · updated 3 days ago
QR code for framework.pub/go/hfz4

framework.pub/go/hfz4

Scan the code, or type the address. At framework.pub/go, enter hfz4.

Download PNG Download SVG
Download JSON
Race and ethnicity Family SES (2002) Adult SES (2012) Sex
Exposure Outcome

Adjustment sets

Minimal sufficient adjustment sets for the total effect of Family SES (2002) on Adult SES (2012).

  • { Race and ethnicity }

Code

DAGitty
dag {
  race [pos="0,-1.2"]
  parent_ses [exposure, pos="0,0"]
  adult_ses [outcome, pos="2,0"]
  sex [pos="2,-1.2"]
  race -> parent_ses
  race -> adult_ses
  parent_ses -> adult_ses
  sex -> adult_ses
}
Python
dag_categories = """dag {
  race [pos="0,-1.2"]
  parent_ses [exposure, pos="0,0"]
  adult_ses [outcome, pos="2,0"]
  sex [pos="2,-1.2"]
  race -> parent_ses
  race -> adult_ses
  parent_ses -> adult_ses
  sex -> adult_ses
}"""