Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: graph bar problem


From   Tunga Kantarci <[email protected]>
To   [email protected]
Subject   st: graph bar problem
Date   Wed, 30 Apr 2008 15:01:09 +0200

Hello,


I use the following command to generate a categorized bar graph:

graph bar (asis) q41a if grandom == 1, over(frandom_)

However, I receive the following message:

variables frandom_ _variables do not uniquely identify the observations

I don't understand why my "frandom_" variable need to identify the
observations uniquely.
(by the way I have an "id" variable which uniquely identifies observations)
I also do not understand what "_variables" refers to.



If I run the command without "asis" then I get the following:

graph bar q41a if grandom == 1, over(frandom_)
variable __000006 not found in using data


Anyone who might have an idea what's going on?




tab frandom

         q4 |
 (standard) |
       item |
randomizati |
         on |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |        627       34.19       34.19
          2 |        600       32.72       66.90
          3 |        607       33.10      100.00
------------+-----------------------------------
      Total |      1,834      100.00


tab grandom

         q4 |
 (standard) |
       item |
randomizati |
 on pension |
     income |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |        465       25.35       25.35
          2 |        478       26.06       51.42
          3 |        452       24.65       76.06
          4 |        439       23.94      100.00
------------+-----------------------------------
      Total |      1,834      100.00



 tab q41a

             q4 age |
randomisation 1 3/4 |      Freq.     Percent        Cum.
--------------------+-----------------------------------
Plan from ^name5 |        220       52.26       52.26
Plan from ^name6 |         53       12.59       64.85
Plan from ^name7 |        148       35.15      100.00
--------------------+-----------------------------------
              Total |        421      100.00


*
*   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