Social Network Variables

VariableData TypeDescriptionAllowable Codes
q1snintegerHow many living children do you have?       0 - 25
    98 = Don't know
    99 = Refused
  Null = Missing
q2snintegerHow many of your children do you see at least once a month?       0 - 25
    98 = Don't know
    99 = Refused
  Null = Missing
q2asnintegerDo you usually see your close children at least once a month?     1 = Yes
    2 = No
    8 = Don't know
    9 = Refused
Null = Missing
q3snintegerHow many close relatives do you have?       0 - 80
    98 = Don't know
    99 = Refused
  Null = Missing
q3asnintegerHow many close relatives do you see at least once a month?       0 - 25
    98 = Don't know
    99 = Refused
  Null = Missing
q3a1snintegerDo you usually see your close relatives at least once a month?     1 = Yes
    2 = No
    8 = Don't know
    9 = Refused
Null = Missing
q4snintegerHow many close friends do you have?       0 - 80
    98 = Don't know
    99 = Refused
  Null = Missing
q4asnintegerHow many close friends do you see at least once a month?       0 - 25
    98 = Don't know
    99 = Refused
  Null = Missing
q4a1snintegerDo you usually see your close friends at least once a month?     1 = Yes
    2 = No
    8 = Don't know
    9 = Refused
Null = Missing

socialnet Algorithm

First transform all 'Don't know' and 'Refused' to Null or Missing.

Calculate Score for Social Network
children if q1sn > 1 then children = q2sn
   else if q1sn = 0 then children = 0
   else if q1sn = 1 then children = 2 - q2asn
relatives if q3sn > 1 then relatives_see = q3asn
   else if q3sn = 0 then relatives = 0
   else if q3sn = 1 then relatives = 2 - q3a1sn
friends if q4sn > 1 then friends = q4asn
   else if q4sn = 0 then friends = 0
   else if q4sn = 1 then friends = 2 - q4a1sn
socialnet = sum (children + relatives + friends)