Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: I can't run a simple program!


From   Richard Williams <[email protected]>
To   [email protected], <[email protected]>
Subject   Re: st: I can't run a simple program!
Date   Wed, 18 Jun 2008 17:05:06 -0500

At 03:57 PM 6/18/2008, Solorzano, Jenniffer wrote:
Hi,
I don't know what is happening with my stata version. I'm trying to run
this simple program....

. program count6
  1. forvalues `i'=1/6 {
  2. display `i'
  3. }
  4. end

. count6
_= invalid name
r(198);


And that error appears from nothing, somebody can help me?
forvalues `i'=1/6 {

should be

forvalues i=1/6 {

When in doubt, try -set trace on- to see where the error is occurring.



-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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