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: how to drop coefficients on fixed effects from the estout command
From
Joerg Luedicke <[email protected]>
To
[email protected]
Subject
Re: st: how to drop coefficients on fixed effects from the estout command
Date
Sat, 18 Jun 2011 10:00:40 -0400
It will work if you create dummies manually and then put the names of
those dummies into -drop()-. This itself is not nice if you have a lot
of dummies but it implies that you can put your dummies into a macro
and then put that into drop(). Consider the following example:
/*******************************************/
sysuse auto, clear
tab rep78, g(rep78_d)
ds rep78_d1 rep78_d2 rep78_d3 rep78_d4
global dum=r(varlist)
reg price mpg $dum
est sto M1
estout M1 using test1.txt, replace drop($dum)
/*******************************************/
Maybe there are other and more elegant solutions out there.
Joerg
On Sat, Jun 18, 2011 at 8:42 AM, Ridhima Gupta <[email protected]> wrote:
> Hello,
>
> I am estimating a model controlling for village fixed effects using
> the i.v_id expression. I want to drop the coefficients on the village
> fixed effects in the estout command as I do not wish to report them. I
> have tried using the expression drop(i.v_id) and drop (v_id2 v_id3 so
> on).
> But I get an error saying that coefficient v_id not found.
>
> How can I successfully drop these coefficients from the output
> generated by estout?
>
>
> Thanks in advance for your help.
>
> Best Wishes,
> Ridhima
> *
> * 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/
>
*
* 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/