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: cascading dummies


From   Shikha Sinha <shikha.sinha414@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: cascading dummies
Date   Mon, 1 Oct 2012 11:31:14 -0700

Hi all,

Recently, I came across a new way of creating dummies and I wonder
what the group thinks about this form.

The independent variable X is coded as 1- very poor, and 5 as very
rich. I want to estimate the effect by wealth quintile. I created the
dummy the following ways, but I was told that this is wrong (A is
wrong). The correct way to construct dummy is B and is called
cascading dummies. I have never come across this before and would
appreciate if you could shed light on the difference between the two
and which is the correct way of creating dummies.

A:							
id	Y	X1 (scale of 1-5), 	dum1	dum2	dum3	dum4	dum5
1	100	5	0	0	0	0	1
2	200	4	0	0	0	1	0
3	300	3	0	0	1	0	0
4	239	2	0	1	0	0	0
5	345	1	1	0	0	0	0


B:							
id	Y	X1 (scale of 1-5),	dum1	dum2	dum3	dum4	dum5
1	100	5	1	1	1	1	1
2	200	4	1	1	1	1	0
3	300	3	1	1	1	0	0
4	239	2	1	1	0	0	0
5	345	1	1	0	0	0	0

Thanks,
Shikha
*
*   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