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

st: programming questions


From   Dinesh Sharma <[email protected]>
To   [email protected]
Subject   st: programming questions
Date   Tue, 05 Jul 2005 15:44:06 -0400

Given below is a forval loop I am working on

forval k=1(1)10{
if `k'=1{
commands
}
else{
commands
}
}

The if part of the above program is giving error message. I will appreciate any suggestions.

Thanks

Dinesh
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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