* SUPPLEMENTAL CODING TO GENERATE 1999 POPULATION COUNT. * COUNTS ARE GENERATED ON A "DATA YEAR" (6 QUARTERS) BASIS. * * THE GET FILE STATEMENT ASSUMES THAT A PERSON-LEVEL FILE WAS * PEEVIOUSLY CREATED AND SAVED USING THE 1999 FULL HIERARCHICAL FILE. * IT WAS SAVED UNWEIGHTED. ALL STATEMENTS REGARDING INCIDENT-LEVEL VARIABLES * (V4000'S) WERE COMMENTED OUT AND MADE INACTIVE. get file="C:\NCVS\person99.sav". * ADJUST THE PERSON WEIGHT TO REFLECT TIME IN SAMPLE. do if (V2003=991 and V2130=01). compute adjwgt=0. else if (V2003=991 and V2130=02). compute adjwgt=V3080*1/12. else if (V2003=991 and V2130=03). compute adjwgt=V3080*2/12. else if (V2003=992 and V2130=04). compute adjwgt=V3080*3/12. else if (V2003=992 and V2130=05). compute adjwgt=V3080*4/12. else if (V2003=992 and V2130=06). compute adjwgt=V3080*5/12. else if (V2003=993 or V2003=994 and (V2130=07 or V2130=08 or V2130=09 or V2130=10 or V2130=11 or V2130=12)). compute adjwgt=V3080*6/12. else if (V2003=001 and V2130=01). compute adjwgt=V3080*6/12. else if (V2003=001 and V2130=02). compute adjwgt=V3080*5/12. else if (V2003=001 and V2130=03). compute adjwgt=V3080*4/12. else if (V2003=002 and V2130=04). compute adjwgt=V3080*3/12. else if (V2003=002 and V2130=05). compute adjwgt=V3080*2/12. else if (V2003=002 and V2130=06). compute adjwgt=V3080*1/12. end if. * WEIGHTED FREQUENCY ON ANY VARIABLE TO GET A TOTAL PERSON COUNT. weight by adjwgt. freq vars = V3018.