Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: assistance with syntax


From   Sheela Athreya <[email protected]>
To   [email protected]
Subject   st: assistance with syntax
Date   Mon, 09 May 2005 11:46:03 -0500

Can anyone please tell me what is wrong with the syntax of the following command?

foreach pc of varlist _all {egen z`pc'=std(`pc')}

I get the error message "program error: code follows on the same line as open brace
r(198); "

I haven't used this command to standardize a set of variables in a long time, and have unfortunately maxed out my creative abilities to solve this problem. I'm using Intercooled Stata 8 for the Macintosh, although I'm pretty sure the syntax should be universal for this particular command.

Thanks very much.




********************************
Sheela Athreya, Ph.D.
Assistant Professor
Department of Anthropology
Texas A&M University
4352 TAMU
College Station, TX 77843
phone: 979-845-4785
fax: 979-845-4070



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index