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 at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: Creating Dummys from a variable with 5 categories


From   daniel klein <klein.daniel.81@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Creating Dummys from a variable with 5 categories
Date   Sun, 2 Dec 2012 11:15:58 +0100

Sharon,

have you read this:http:
www.stata.com/support/faqs/data-management/creating-dummy-variables/

If you decide _not_ to use factor variable notation, the reference in
an anlysis, say a linear regression model, is merely the dummy you do
not include in your model.

Using factor variable notation, type in Stata

help fvvarlist

and read on to learn about setting and changing the reference category.

Best
Daniel

-- 
Hi

I have a variable with 5 answers and need to make a dummy variable from it

The question asked - How are you charged for your waste:
1. Flat Fee
2. Weight or Volume
3. Frequency
4. Not Charged
5. Dont Know

If I want to create a dummy variable that uses Flat Fee as a reference point

1. How do I create a dummy (I have tried the basic way - gen XXXX =1
replace XXXX=0 if YYYY=>2) but I believe this is incorrect as it
doesnt incorporate all the variables.

2. How do I get Stata 12 to use "Flat Fee" as the reference base point

I am a beginner to statistics so please use simple terminology. Thank You

Sharon
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index