Dear stat specialists,
I am working with cross-sectional data obtained from Pakistan Bureau of statistics. the data i am using is distributed based on household code. I am trying to draw a graph between cumulative distribution function of education and birth order. the education attainment is in years of schooling where the minimum value is 1 while the maximum value is 17. the birth order is codified into "1" and "0" where "1" refers to firts born while "0" refers to later born. the data is distributed as following.
Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
 dataex hhcode hh_size birth_order max_edu
input double hhcode float(hh_size birth_order max_edu)
1102100105 1 1 10
1102100503 1 1  0
1102100901 1 1  0
1102100902 1 1  5
1102100908 1 1  0
1102101709 1 1 10
1102101711 2 1 12
1102101711 2 0 13
1102200206 1 1  8
1102200605 1 1  6
1102200609 1 1  0
1102201004 1 1  0
1102201401 1 1 13
1102201402 2 1 17
1102201402 2 0 16
1102300303 1 1  0
1102300712 1 1 16
1102301105 1 1  0
1102301112 1 1  0
1102400412 1 1  0
1102401611 2 1  0
1102401611 2 0  0
1111100102 2 1  0
1111100102 2 0  5
1111100103 1 1 16
1111100110 1 1  7
1111100111 1 1  0
1111100515 1 1 10
1111200206 1 1 13
1111300313 1 1 12
1121100406 1 1  0
1121100414 1 1  0
1121100806 1 1  0
1121100812 1 1  0
1121200116 1 1  0
1121200509 1 1  0
1121300602 2 0  0
1121300602 2 1  0
1121400310 1 1  0
1121400704 1 1  0
1121400711 2 1  0
1121400711 2 0  0
1121400714 1 1  0
1131100407 1 1  0
1131100415 1 1  0
1131100805 1 1 13
1131200508 1 1  0
1131200916 2 1  5
1131200916 2 0  0
1131301001 2 1  7
1131301001 2 0 10
1131301008 1 1  8
1131301010 1 1  9
1131400304 1 1  2
1131400313 1 1  0
1131400702 1 1  0
1131401103 1 1  0
1131401104 1 1  0
1131401107 1 1 16
1141100101 1 1  6
1141100108 1 1 10
1141100509 1 1  5
1141200202 1 1  0
1141200213 1 1  7
1141200216 1 1  0
1141300310 1 1  0
1141400412 1 1  5
1141400413 1 1  0
1151300114 1 1  0
1161100309 1 1  0
1161100315 2 1  5
1161100315 2 0  0
1161300116 2 1  0
1161300116 2 0  6
1161300510 1 1  0
1161300512 1 1  0
1161400211 1 1  5
1171100201 2 1  0
1171100201 2 0  5
1171200311 1 1  5
1171400102 1 1 16
1171400107 1 1  4
1171400116 1 1 10
1181100612 1 1  5
1181400110 1 1  8
1181400112 1 1  0
1181400508 1 1  0
1202100403 1 1 12
1202100810 1 1 16
1202101201 1 1 14
1202101206 1 1 10
1202200511 2 1 12
1202200511 2 0 13
1202200911 1 1  5
1202201302 1 1 16
1202300202 1 1 12
1202300604 2 1 16
1202300604 2 0 12
1202301003 1 1 14
1202301005 1 1 13
end

Based on this data I want to get graphs as shown in pictures below
Array Array
Could you please help on that code