- * Example generated by -dataex-. To install: ssc install dataex
- clear
- input str12 ID byte(parentID ca001)
- "010104101002" 1 2
- "010104101002" 2 1
- "010104101002" 3 1
- "010104101002" 4 1
- "010104102002" 1 2
- "010104102002" 2 2
- "010104102002" 3 2
- "010104102002" 4 1
- "010104103001" 1 2
- "010104103001" 2 2
- "010104103001" 3 2
- "010104103001" 4 1
- "010104104001" 1 2
- "010104104001" 2 2
- "010104104001" 3 2
- "010104104001" 4 1
- "010104105002" 1 2
- "010104105002" 2 2
- "010104105002" 3 2
- "010104105002" 4 2
- end
- label values parentID parent
- label def parent 1 "1 Father", modify
- label def parent 2 "2 Mother", modify
- label def parent 3 "3 Father-in-law", modify
- label def parent 4 "4 Mother-in-law", modify
- label values ca001 ca001
- label def ca001 1 "1 Yes", modify
- label def ca001 2 "2 No", modify
在以上数据里我只需要ID 和一个dummy去说明这个ID的父母或者岳父岳母是否健在(或者还有几个健在0-4),因为我需要把单一的ID对应信息和其他组数据进行合并,请问应该如何处理?


雷达卡








京公网安备 11010802022788号







