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]

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: RE: RE: RE: RE: xtabond and cluster |

Date |
Tue, 16 Mar 2010 17:48:54 +0100 |

<> Ok, so the error was within the -varlist- for -xtabond-, as suspected. To -generate- a variable denoting combinations between "company_number" and "distid", try ************* egen, group() ************* instead of your "cap..." line. HTH Martin -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Ma, Yu-Luen Sent: Dienstag, 16. März 2010 17:45 To: statalist@hsphsun2.harvard.edu Subject: st: RE: RE: RE: RE: xtabond and cluster Thanks for responding. Below is my program: cap company_number distid, gen(id_) xtabond Y l.Y X1 X2 id_*, robust Basically I am just trying to figure out how to create a series of dummy variables to be included in the model. Thanks. Yulue -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick Cox Sent: Tuesday, March 16, 2010 7:33 AM To: statalist@hsphsun2.harvard.edu Subject: st: RE: RE: RE: xtabond and cluster I commented on the one command line I saw, which just wouldn't work. You may well be right. Perhaps if Yu-Luen were to follow advice and show exactly what was typed when calling -xtabond- then better advice would be forthcoming. Nick n.j.cox@durham.ac.uk Martin Weiss "3. The argument to -generate- must be a stubname. If you're trying to include -id_*- in the argument to -generate()-, that's wrong. The test of a stubname is that you can append to it and produce legal new variable names, but * can't appear in variable names. If a varlist had been legal for that option, the syntax would say so." My take on Yu-Luen`s question is that this point was quite clear, and that the problem arose later when "id_*" was fed to -xtabond-. Indeed, the code supplied shows that the -generate- option was used with the perfectly legal "id_". The "variable list" mentioned at the end of the post was probably the one meant for use in -xtabond-... Nick Cox I focus on the dummy question. Your syntax looks wrong on various counts. 1. I assume what's missing here is -tabulate-. The -capture- is irrelevant to the rest of the question. 2. -tabulate- can only be used to generate dummy variables when called with one variable. If you're trying to include -id_*- in the variable list, that won't work. (But you wouldn't get this error message, so you can't mean what you say.) 3. The argument to -generate- must be a stubname. If you're trying to include -id_*- in the argument to -generate()-, that's wrong. The test of a stubname is that you can append to it and produce legal new variable names, but * can't appear in variable names. If a varlist had been legal for that option, the syntax would say so. P.S. I'd advise against the expression "a data" to mean "a dataset". It's bad enough when people treat "data" as singular, even though many regard that as defensible. I'd regard "a data" as unacceptable English in any draft handled by me as adviser, assessor or editor. Ma, Yu-Luen I have a panel data and I use xtabond because my model includes the lagged dependent variable. My question is: am I able to cluster my standard errors by subject using xtabond? If not, what is my alternative? I also have a question about creating dummy variables. I used the following command for creating subject dummy variables: cap company_number distid, gen(id_) But when I include id_* in the variable list, I received an error message suggesting "variable id_* not found". Can anyone assist? * * 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/ * * 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/

**References**:**st: xtabond and cluster***From:*"Ma, Yu-Luen" <yma@ilstu.edu>

**st: RE: xtabond and cluster***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**st: RE: RE: RE: xtabond and cluster***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**st: RE: RE: RE: RE: xtabond and cluster***From:*"Ma, Yu-Luen" <yma@ilstu.edu>

- Prev by Date:
**st: RE: RE: RE: RE: xtabond and cluster** - Next by Date:
**RE: Antwort: re: st: Graph png format - differences in scaling between vers. 10 and 11** - Previous by thread:
**st: RE: RE: RE: RE: xtabond and cluster** - Next by thread:
**st: RE: RE: RE: RE: RE: xtabond and cluster** - Index(es):