Project

General

Profile

Support #801

coding of w_hrpid in w_indall

Added by Fiona Steele about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/25/2017
Due date:
% Done:

100%

Estimated time:

Description

Hello,

I would like to use pidp for the household reference person in data file c_indall, but it seems that the variable c_hrpid does not in general match pidp for any member of the household. I can work around this by using c_hrpno instead, but I just wanted to check whether there might be an error with c_hrpid or whether I have misunderstood something.

I used the following Stata code:

rename c_* *
gen x=hrpid-pidp if pno==hrpno
tab x
sort hidp pno
brow hidp pidp hrpid pno hrpno x

I expected x=0, but this is true for only 9 cases. Here are the data for the first 4 households.

hidp pidp hrpid pno hrpno x
68013604 68004087 68004088 1 1 1
68020404 68006127 68006128 1 1 1
68020404 68006139 68006128 2 1
68020404 68006135 68006128 3 1
68020404 68020564 68006128 4 1
68040804 68006807 68006808 1 1 1
68047604 68007487 68007488 1 1 1
68047604 68007491 68007488 2 1
68047604 68007499 68007488 3 1

I have not checked all w_indall files, but found the same problem for wave 'e'.

Thanks very much.

Fiona

History

#1 Updated by Victoria Nolan about 2 years ago

  • Status changed from New to Feedback
  • Assignee set to Fiona Steele
  • % Done changed from 0 to 90
  • Private changed from Yes to No

Dear Fiona,

Many thanks for your enquiry - you have indeed highlighted an error, which will be resolved in our next data release. In the mean time, you can link on c_hidp c_hrpno instead.

Best wishes, Victoria.

#2 Updated by Victoria Nolan about 2 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF