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

st: creating a large set of dummies

From   "Jan Sauermann" <>
Subject   st: creating a large set of dummies
Date   Tue, 19 Aug 2008 09:44:13 +0200

Dear Statalisters,

for a regression, I need a large set of dummies for controlling for
individual fixed effects. This can easily be done by -tab VAR,
gen(NEWVAR)-. Of course, lots of variables are created just for a
single regression.

My question: is there a way to tell Stata that it should include a
dummy for each value of a certain variable without having to create a
single dummy for each value? In my understanding, this would be
similar to the use of lagged variables where you type -L.VAR-

Kind regards,


Jan Sauermann (<>)
Research Centre for Education and the Labour Market (ROA) / Maastricht

P.O. Box 616 | NL - 6200 MD Maastricht
office: +31.43.3883801 | mobile: +31.655853921
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index