{
  "schema": "framework.artifact/v1",
  "kind": "dag",
  "source": {
    "language": "python"
  },
  "dagitty": "dag {\n  parent_ability [latent, pos=\"0,-3\"]\n  child_ability [latent, pos=\"1.5,-3\"]\n  motivation [pos=\"2.6,-2.4\"]\n  parent_ses [exposure, pos=\"0,0\"]\n  math [pos=\"1.5,-0.7\"]\n  attainment [pos=\"1.5,0.8\"]\n  adult_ses [outcome, pos=\"3.4,0\"]\n  race [pos=\"0,2.2\"]\n  sex [pos=\"2.4,2.2\"]\n  parent_ability -> parent_ses\n  parent_ability -> child_ability\n  parent_ses -> child_ability\n  parent_ses -> motivation\n  child_ability -> motivation\n  child_ability -> math\n  child_ability -> adult_ses\n  motivation -> math\n  motivation -> attainment\n  motivation -> adult_ses\n  sex -> motivation\n  sex -> attainment\n  sex -> adult_ses\n  race -> parent_ses\n  race -> adult_ses\n  parent_ses -> adult_ses\n  parent_ses -> math -> adult_ses\n  parent_ses -> attainment -> adult_ses\n  math -> attainment\n}",
  "labels": {
    "parent_ses": "Family SES (2002)",
    "adult_ses": "Adult SES (2012)",
    "race": "Race and ethnicity",
    "sex": "Sex",
    "math": "Math score (10th grade)",
    "attainment": "Educational attainment",
    "parent_ability": "Parents' ability (unobserved)",
    "child_ability": "Child's ability (unobserved)",
    "motivation": "Motivation (10th grade)"
  },
  "code": {
    "language": "python",
    "text": "dag_complex = \"\"\"dag {\n  parent_ability [latent, pos=\"0,-3\"]\n  child_ability [latent, pos=\"1.5,-3\"]\n  motivation [pos=\"2.6,-2.4\"]\n  parent_ses [exposure, pos=\"0,0\"]\n  math [pos=\"1.5,-0.7\"]\n  attainment [pos=\"1.5,0.8\"]\n  adult_ses [outcome, pos=\"3.4,0\"]\n  race [pos=\"0,2.2\"]\n  sex [pos=\"2.4,2.2\"]\n  parent_ability -> parent_ses\n  parent_ability -> child_ability\n  parent_ses -> child_ability\n  parent_ses -> motivation\n  child_ability -> motivation\n  child_ability -> math\n  child_ability -> adult_ses\n  motivation -> math\n  motivation -> attainment\n  motivation -> adult_ses\n  sex -> motivation\n  sex -> attainment\n  sex -> adult_ses\n  race -> parent_ses\n  race -> adult_ses\n  parent_ses -> adult_ses\n  parent_ses -> math -> adult_ses\n  parent_ses -> attainment -> adult_ses\n  math -> attainment\n}\"\"\""
  },
  "analysis": {
    "effect": "total",
    "adjustment_sets": []
  }
}