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: Recode Issue: Getting new variable after recoding
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Recode Issue: Getting new variable after recoding
Date
Wed, 7 Nov 2012 11:31:00 +0000
I don't think this can make sense to anyone without sight of your data.
"The problem is that newvar becomes representative of 7 variables"
You need to expand on what you mean here and what your evidence is for
this statement.
NIck
On Wed, Nov 7, 2012 at 11:23 AM, malay biswas <[email protected]> wrote:
> Dear All,
>
> I used command
>
> tab prime, gen(flood)
>
> this command created 10 separate variables (flood1.....flood10)
>
> I reclubbed them selectively taking only 6 variables
>
> egen newvar=group(flood1 flood2 flood3 flood4 flood5 flood6), label
>
> The problem is that newvar becomes representative of 7 variables.
> Could anyone explain me how come this seventh variable is getting
> clubbed/recoded under newvar.
*
* 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/