Skip to content

famid: Family identifer (unique within household)

Description

famid is a family identifer, unique within year, month, hhid.

Availability

Sample Years
Basic 1984 - present
ORG 1984 - present

Values

Value Label
0 Not a family member
1 Primary family member only
2 Subfamily no. 2 member
3 Subfamily no. 3 member
4 Subfamily no. 4 member
5 Subfamily no. 5 member
6 Subfamily no. 6 member
7 Subfamily no. 7 member
8 Subfamily no. 8 member
9 Subfamily no. 9 member
10 Subfamily no. 10 member
11 Subfamily no. 11 member
12 Subfamily no. 12 member
13 Subfamily no. 13 member
14 Subfamily no. 14 member
15 Subfamily no. 15 member
16 Subfamily no. 16 member
17 Subfamily no. 17 member
18 Subfamily no. 18 member
19 Subfamily no. 19 member
20 Subfamily no. 20 member
21 Subfamily no. 21 member
22 Subfamily no. 22 member
23 Subfamily no. 23 member
24 Subfamily no. 24 member
25 Subfamily no. 25 member
26 Subfamily no. 26 member
27 Subfamily no. 27 member
28 Subfamily no. 28 member
29 Subfamily no. 29 member
30 Subfamily no. 30 member
31 Subfamily no. 31 member
32 Subfamily no. 32 member
33 Subfamily no. 33 member
34 Subfamily no. 34 member
35 Subfamily no. 35 member
36 Subfamily no. 36 member
37 Subfamily no. 37 member
38 Subfamily no. 38 member
39 Subfamily no. 39 member

Code

Variable creation
********************************************************************************
* Family ID within household (hhid)
********************************************************************************
gen byte famid = .

if $monthlycps == 1 {
    if tm(1984m1) <= $date & $date <= tm(1993m12) {
        replace famid = famnum
    }
    if tm(1994m1) <= $date {
        replace famid = prfamnum
    }
}

lab def famid 0 "Not a family member"
lab def famid 1 "Primary family member only", add
forvalues i = 2/39 {
    lab def famid `i' "Subfamily no. `i' member", add
}
lab val famid famid
lab var famid "Family identifer (unique within household)"
notes famid: Family ID unique within year X month X hhid
notes famid: 1984-1993: Unicon famnum
notes famid: 1994-present: CPS famnum