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: Double Clustered Standard Errors in Regression with Factor Variables


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: Double Clustered Standard Errors in Regression with Factor Variables
Date   Thu, 22 Aug 2013 16:12:34 +0100

You don't say where you got the program file, but a look at

http://gelbach.law.yale.edu/~gelbach/ado/cgmreg.ado

confirms that. Time series operators were not implemented and factor
variables were not even in Stata when the program was written, if I
recall correctly. Try running it under -xi:-.


Nick
[email protected]


On 22 August 2013 15:57, Roberto Liebscher <[email protected]> wrote:
> Dear Statalisters,
>
> I am trying to conduct a regression with double clustered standard errors in
> the sense of Cameron/Gelbach/Miller, Robust Inference with Multi-way
> Clustering, 2009. However the ado.file provided by the authors seem only to
> work in the absence of factor variables. To give an example:
>
> use
> http://www.kellogg.northwestern.edu/faculty/petersen/htm/papers/se/test_data.dta,
> clear
> cgmreg y x, cluster(firmid year)
> cgmreg y x i.year, cluster(firmid year)
>
> The last command yields an error message saying: "factor variables and
> time-series operators not allowed"
>
> Is there a way around this or a similar command that allows for factor
> variables?
>
> Any help is highly appreciated. Thank you!
>
> Roberto
>
> --
> Roberto Liebscher
> Catholic University of Eichstaett-Ingolstadt
> Department of Business Administration
> Chair of Banking and Finance
> Auf der Schanz 49
> D-85049 Ingolstadt
> Germany
> Phone:  (+49)-841-937-1929
> FAX:    (+49)-841-937-2883
> E-mail:   [email protected]
> Internet: http://www.ku.de/wwf/lfb/
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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