Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

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


From   Carsten Sauer <[email protected]>
To   [email protected]
Subject   Re: st: --estimates table, drop()" and FACTOR variables (texdoc)
Date   Tue, 02 Aug 2011 09:47:21 +0200


I know a way with a user written command (ssc install estout)

sysuse auto, clear
reg  price i.rep78
esttab , drop(*.rep78)

- carsten


Am 01.08.2011 22:11, schrieb Tanuku AP:
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: [email protected]
Subject: Re: st: --estimates table, drop()"  and FACTOR variables (texdoc)
To: [email protected]



  


    
    
  
  
    

        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/

-- 

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 


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index