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, is already up and running.

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

st: syntax loop

From   "Lamla, Bettina" <>
To   "" <>
Subject   st: syntax loop
Date   Tue, 19 Apr 2011 11:26:26 +0200

Hi everyone!

I have a multiply imputed data set and want to do the same regression for all data sets independently.
The loop works as long as I do not add options after the regress command.
The error is: “option if not allowed. “
Can anyone help me correct the syntax?

forvalues i = 1/5{
        qui regress indepvar depvar, vce(cluster respid)
        if _j== `i'
#delimit cr

I use Stata 11.


Rheinisch-Westfälisches Institut für Wirtschaftsforschung e.V. (RWI)
Hohenzollernstr. 1-3
D-45128 Essen

Phone: +49-201-8149-0
Fax: +49-201-8149-200

Executive Board/Vorstand: Prof. Dr. Christoph M. Schmidt, (Präsident),
Prof. Dr. Thomas K. Bauer (Vizepräsident), Prof. Dr. Wim Kösters
Registration-No./VR 1784 beim Amtsgericht Essen

*   For searches and help try:

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