Dear Statalisters,
I'm having a little trouble with the -ci- command with several binary variables in a particular dataset. The problem  is reproducible on other machines with this dataset, but not with other datasets. The problem is that -ci- displays 0 for all statistics, yet the correct results are returned to macros. I'll paste some output;
*--snip
. codebook var1
--------------------------------------------------------------------------------
var1
-------------------------------------------------------------------------------
                  type:  numeric (byte)
                 range:  [0,1]                        units:  1
         unique values:  2                        missing .:  0/1102
            tabulation:  Freq.  Value
                           825  0
                           277  1
. ci var1
    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
        var1 |       1102           0           0               0           0
. return list
scalars:
                r(ub) =  .2770129342413987
                r(lb) =  .2257093888076031
                r(se) =  .0130734919800961
              r(mean) =  .2513611615245009
                 r(N) =  1102
*---snip
Other commands such as -summarize- are not producing the same problem. All I can think of is that the displayed values are getting rounded to integer values somehow. -ci- normally works fine. Does anyone have any suggestion as what is wrong with my dataset?
*
*   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/