Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: digits difference between stata and mata


From   Wu Zhang <[email protected]>
To   STATA LIST <[email protected]>
Subject   st: digits difference between stata and mata
Date   Sun, 12 May 2013 23:50:10 -0700 (PDT)

Hi folks,

  I have a variable list which has different digits after being imported into MATA; I take a snap of the whole picture:

In stata:

--------------------------------------------
1.  9.477003   8.210668     59.375    -2.00877    
2.   9.34036   9.473704    66.0647   -1.543392    
3.  8.986102   8.188967   53.92946   -.5894488    
4.  9.285332   9.773379   73.92938   -.2278635    
5.  9.286468   9.812742   57.82097   -.0813199    



While in MATA:
    1     9.477003098    8.21066761    59.375          -2.008770227
    2    9.340359688    9.473704338    66.0647049    -1.54339242
    3    8.986102104    8.188966751    53.92946243   -.5894488096
    4    9.285331726    9.773379326    73.92938232   -.2278635055
    5    9.286467552    9.812742233    57.82096863   -.0813199058


Note that what we see in STATA is the same as in the data editor view.


I am just wondering whether there is a way to make them the same?

Thanks a lot!

Wu 


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index