Centre for Longitudinal Studies



* Impute day and month as 15, 6 respectively if not available, as long as year has been
entered sensibly.

* Impute date 30th Sept 2000 for any ongoing pregnancies.

loop #i=1 to 40.

Do if(vprgey(#i) ge 1900 and vprgem(#i) ge 1 and vprgem(#i) le 12 and vprged(#i) ge 1 and
vprged(#i) le 31).

compute birdat(#i)=yrmoda(vprgey(#i),vprgem(#i),vprged(#i)).

compute compdt(#i)=1000000*vprged(#i)+10000*vprgem(#i)+vprgey(#i).

end if.

Do if(vprgey(#i)=9999 or vprgey(#i)=9998 or vprega(#i)=9 or vprega(#i)=8).

compute noyrflag=1.

compute compdt(#i)=99999999.

end if.

Do if(vprgey(#i) ne 9999 and vprgey(#i) ne 9998 and (vprged(#i) ne 99) and (vprgem(#i)=99
or sysmis(vprgem(#i)))).

compute birdat(#i)=yrmoda(vprgey(#i),6,vprged(#i)).

compute compdt(#i)=1000000*vprged(#i)+60000+vprgey(#i).

end if.

Do if(vprgey(#i) ne 9999 and vprgey(#i) ne 9998 and (vprged(#i)=99 or (vprged(#i)=98) or
sysmis(vprged(#i))) and (vprgem(#i)=99 or sysmis(vprgem(#i)))).

compute birdat(#i)=yrmoda(vprgey(#i),6,15).

compute compdt(#i)=15060000+vprgey(#i).

end if.

Do if(vprgey(#i) ne 9999 and vprgey(#i) ne 9998 and vprgem(#i) ne 99 and (vprged(#i)=99 or
vprged(#i)=98 or sysmis(vprged(#i)))).

compute birdat(#i)=yrmoda(vprgey(#i),vprgem(#i),15).

compute compdt(#i)=15000000+10000*vprgem(#i)+vprgey(#i).

end if.

Do if(vprega(#i)=5).

compute birdat(#i)=yrmoda(2000,9,30).

compute compdt(#i)=30092000.

end if.

end loop.

* Flag up all cases where birth dates are out of order.

compute ordrflag=0.

format ordrflag (f1.0).

loop #i=1 to 39.

loop #j=1 to #i.

if (birdat(1+#i)>birdat(#j))ordrflag=1.

end loop.

end loop.

* Flag up all cases where outcomes more than nine months apart are bunched as though part
of the same pregnancy.

compute bunched=0.

format bunched (f1.0).



More intriguing information

1. The Triangular Relationship between the Commission, NRAs and National Courts Revisited
2. TWENTY-FIVE YEARS OF RESEARCH ON WOMEN FARMERS IN AFRICA: LESSONS AND IMPLICATIONS FOR AGRICULTURAL RESEARCH INSTITUTIONS; WITH AN ANNOTATED BIBLIOGRAPHY
3. Party Groups and Policy Positions in the European Parliament
4. The name is absent
5. DISCUSSION: POLICY CONSIDERATIONS OF EMERGING INFORMATION TECHNOLOGIES
6. EFFICIENCY LOSS AND TRADABLE PERMITS
7. What should educational research do, and how should it do it? A response to “Will a clinical approach make educational research more relevant to practice” by Jacquelien Bulterman-Bos
8. Testing the Information Matrix Equality with Robust Estimators
9. Nurses' retention and hospital characteristics in New South Wales, CHERE Discussion Paper No 52
10. BODY LANGUAGE IS OF PARTICULAR IMPORTANCE IN LARGE GROUPS
11. Effort and Performance in Public-Policy Contests
12. An Incentive System for Salmonella Control in the Pork Supply Chain
13. The name is absent
14. An institutional analysis of sasi laut in Maluku, Indonesia
15. The name is absent
16. The Global Dimension to Fiscal Sustainability
17. The name is absent
18. 03-01 "Read My Lips: More New Tax Cuts - The Distributional Impacts of Repealing Dividend Taxation"
19. Financial Development and Sectoral Output Growth in 19th Century Germany
20. Weak and strong sustainability indicators, and regional environmental resources