| Re: Force at Sexual Initiation  [message #11669 is a reply to message #11641] | 
			Tue, 24 January 2017 07:03   | 
		 
		
			
				
				
				
					
						
						Precious
						 Messages: 2 Registered: January 2017  Location: Harare
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		Sorry maybe my question wasn't clear at first. I m using CSPro for tabulation. The variables that I need help on are the variables that were used to come up with  First Sexual intercourse was: At the time of first marriage/ First cohabitation,Before first marriage/ first cohabitation and missing. I used the following variables but still I m not getting the correct figures on this part of the table.The rest of the table  the figures are  balancing.I started doing this table using ZDHS2010 and if this is successful will run the table for Zdhs2015. These are the variables that I used and are not giving me the correct figures. The highlighted part is the one I need help on. 
      
 
 
postproc 
  if unweight then 
    rweight = 1; 
  else 
    rweight = D005 / 1000000;       
         endif; 
 
   { general variables } 
d109w    = d109; 
V525W    = V525; 
D123w    = D123; 
 
 box V531     => V531W; 
      7-14     => 0; 
      15-19   => 1; 
      20-24   => 2; 
      25-29   => 3; 
      30-49   => 4; 
               =>5; 
       
  endbox; 
          
          if d123W =2  then forced  =1; xtab( Tab16, rweight); endif; {force against their will} 
        
          if V525  in 96  and v502=1 THEN FIRSTSEX =1; xtab( Tab16, rweight); ENDIF; {At time of first marriage}  
          if d109W = 95 and v502=1  THEN FIRSTSEX =2; xtab( Tab16, rweight); ENDIF; {Before first marriage} 
          if v502=1 and (V525 = missing | d109W = missing ) THEN FIRSTSEX =3; xtab( Tab16, rweight);ENDIF; {missing} 
       
          if V525 <>0 THEN COLDV09A=1;xtab( Tab17, rweight);endif; {Women who have ever sex} 
 
Thanks for your support. 
 
Regards Sime 
       
         
  
		
		
		[Updated on: Tue, 24 January 2017 07:04] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |