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]

Re: st: unknown el ) in rule r(198);( creating group variable )


From   Richard Goldstein <[email protected]>
To   [email protected]
Subject   Re: st: unknown el ) in rule r(198);( creating group variable )
Date   Thu, 21 Nov 2013 15:45:59 -0500

looks to me like you have period just before "gen" - it should be a comma

Rich

On 11/21/13, 3:34 PM, Ven Venkatachalam wrote:
> Hi 
> 
> I am converting continuous variable into group variable (group_stafreg), when ever i run the command it shows me  "unknown el ) in rule r(198);.
> 
> the variable is change in staff 
>  +----------+
>      | totals~g |
>      |----------|
>   1. |      8.5 |
>   2. |        9 |
>   3. |        3 |
>   4. |        0 |
>   5. |       12 |
>      |----------|
>   6. |        6 |
>   7. |        2 |
>   8. |        2 |
>   9. |        4 |
>  10. |     1.25 |
>      |----------|
>  11. |        0 |
>  12. |       .5 |
>  13. |      2.5 |
>  14. |        0 |
>  15. |        1 |
>      |----------|
>  16. |        0 |
>  17. |        2 |
>  18. |        7 |
>  19. |        2 |
>  20. |        2 |
>      |----------|
>  21. |        0 |
>  22. |        0 |
>  23. |        0 |
>  24. |        1 |
>  25. |        3 |
>      |----------|
>  26. |        0 |
>  27. |        5 |
>  28. |        0 |
>  29. |        0 |
>      +----------+
> 
> when i run the command 
> 
>  recode totalstaffadchreg(min/2.50=1)(2.51/5.0=2)(5.1/max).gen(group_stafreg)
> 
> unknown el ) in rule
> r(198);
> 
> 
> Any help appreciated .
> 
> Thanks 
> Ven 		 	   		  
> *
> *   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/
> 
*
*   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