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

st: SAS to Stata do instruction


From   Giulio Rizzoli <[email protected]>
To   [email protected]
Subject   st: SAS to Stata do instruction
Date   Wed, 27 Aug 2003 15:44:26 +0200

I woul'd like someone to show me
the translation of this sas code that generates 501 time points to stata code.

                      
  DATA PREDICT;
                                                            
  MAX=360; LN_MAX=LOG(MAX); INC=(1+LN_MAX)/499.9;
                                                            
  DO LN_TIME=-1 TO LN_MAX BY INC,LN_MAX;
                                                            
    MONTHS=EXP(LN_TIME); YEARS=MONTHS/12;
                                                            
    OUTPUT;
                                                            
  END;
                                                            
  DROP LN_TIME;   

Thank-you. Giulio Rizzoli
                                                                   
                


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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