Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: syntax question

Subject   st: syntax question
Date   Mon, 18 Nov 2002 14:59:39 -0800 (PST)

Hi Stata users, I'm now trying to convert SAS language to Stata. Since I'm relatively new to Stata, any help will be greatly appreciated!!!!

The SAS language I try to rewrite for Stata is

do i =1 to 6;   

   if (ICAT EQ i) then do;

      do j =1 to 4;     

            if (KiAj{j,1} > 0) and (KiGj{j,1} > 0) then do;
            IGC{i}   =IGC{i}   + KiGj{j,1};
            IGC_h{i} =IGC_h{i} + KiAj{j,1};
            IHC{i}   =IHC{i}   + KiHj{j,1};

Thank you in advance for any assistance that you may provide.


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index