Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Too many values error


From   Pablo Bonilla <pablo.bonilla1234@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   st: Too many values error
Date   Fri, 16 Mar 2012 11:49:14 -0400

Dear Stata list,

I need to produce a single table for each of the following years.


       year |      Freq.     Percent        Cum.
------------+-----------------------------------
       1992 |     63,180       11.47       11.47
       1996 |     84,252       15.30       26.77
       2000 |     60,648       11.01       37.78
       2008 |    176,808       32.10       69.88
       2010 |    165,930       30.12      100.00
------------+-----------------------------------
      Total |    550,818      100.00


As you can see I do not have to many obs in each year but when I try

table net_inc disp_inc factor if year == 2000, row

I get

too many values
r(134);


both net_inc and  disp_inc are categorical variables of five
categories each, and factor is a double variable. I wouldn't like to
do this tables in Excel but for now is the only way that I find. Do
you have any suggestions ????

As always, thank you so much.


Best,
----

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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index