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]

RE: st: --estimates table, drop()" and FACTOR variables (texdoc)


From   Tanuku AP <tanuku.ap@hotmail.com>
To   Stata <statalist@hsphsun2.harvard.edu>
Subject   RE: st: --estimates table, drop()" and FACTOR variables (texdoc)
Date   Mon, 1 Aug 2011 16:11:12 -0400

Hello all,




Carsten: thanks for your reply.

With 300 categories for 
the factor variable, spelling each category out is rather daunting.  My 
quick workaround is to --estimate table, keep()-- the coefficients I
 want as it results in shorter list.

And I thought factor variables were first-class citizens. Please do reply if there is a way to use factor variables in their new syntax with --estimates table--



--Tanuku


Date: Mon, 1 Aug 2011 20:22:15 +0200
From: carsten.sauer@uni-bielefeld.de
Subject: Re: st: --estimates table, drop()"  and FACTOR variables (texdoc)
To: statalist@hsphsun2.harvard.edu



  


    
    
  
  
    

        you have to specify which factor variable you want to drop.

        Look at this example:

        

        sysuse auto, clear

        reg price  mpg i.rep78

        est table, drop(2.rep78)

        est table, drop(2.rep78 3.rep78)

    

    best, carsten 

    

    Am 01.08.2011 19:30, schrieb Tanuku AP:
    
      Hello all,

I run a few specifications then try to drop a factor variable (~300 dummies) but --estimates table-- throws an error.  Am I doing something wrong?  If there is an issue with factor variables, is there a known workaround?


estimates table a1 a2 a3 a4 a5, drop(i.hsacode)
coefficient i.hsacode does not occur in any of the models
r(198);

. estimates table a1 a2 a3 a4 a5, drop(hsacode)
coefficient hsacode does not occur in any of the models
r(198);

. estimates table a1 a2 a3 a4 a5, drop(_hsacode)
coefficient _hsacode does not occur in any of the models
r(198);





BTW, I am using these --estimates table-- within a --texdoc stlog-- block.


--Tanuku
 		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

    
    

    -- 
Carsten Sauer
Soziale Ungleichheit und Sozialstrukturanalyse
Universität Bielefeld
Fakultät für Soziologie
Postfach 10 01 31
33501 Bielefeld
Tel.: 0521 106-67291/-6948 (Sekr. Frau Fischer)
Fax: 0521 106-6479  		 	   		  
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index