Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: controlling the omission of dummy variables


From   Fernando Lozano <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   Re: st: controlling the omission of dummy variables
Date   Mon, 21 Jul 2003 20:57:56 -0700 (PDT)

char var[omit] valuetoomit

for example for a data set 3 digit occupation categories, if the
occuptaion that I want to omit is number 804, then I do:

char occ[omit] 804
xi: sum i.occ

hope this helps.

Fernando

____________________________________________________________________________

Fernando Antonio Lozano                        
PhD Candidate                
Department of Economics        
University of California      
Santa Barbara CA 93106        
www.econ.ucsb.edu/~lozano    

On Mon, 21 Jul 2003, Dimitriy V. Masterov wrote:

> Dear Statalist,
> 
> I can't seem to figure out how to alter what the Stata criteria are for
> dropping one dummy variable from a collinear set of such variables in an
> OLS regression. Is there a command that sets it to be the most common
> category, the way one can do with xi using char _dta[omit] "prevalent" ?
> 
> Dimitriy V. Masterov
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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