Statalist The Stata Listserver


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

st: generate newvar with the -foreach- command


From   Joseph Coveney <jcoveney@bigplanet.com>
To   Statalist <statalist@hsphsun2.harvard.edu>
Subject   st: generate newvar with the -foreach- command
Date   Sun, 07 May 2006 09:48:48 +0900

Sorry, I hadn't finished my coffee, yet:

local suffix = substr("`var'", 4, .)

should have been
local suffix = substr("`var'", 5, .)

Joseph Coveney

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index