--- Honorati Masanja <[email protected]> wrote:
> I'm running a lowess regress and have the follow code which I'll
> appreciate your help
>
> forval i=0.2(0.1)0.8 {
> lowess lnu5m year, bwidth(`i') gen(alph`i')
> }
>
> What I want is to have the variables alph as follows,
>
> if i=0.2 then alph20
> if i=0.21 then alph21
forval i=0.2(0.1)0.8 {
local j = `i' * 100
lowess lnu5m year, bwidth(`i') gen(alph`j')
}
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
__________________________________________________________
Sent from Yahoo! - the World's favourite mail http://uk.mail.yahoo.com
*
* 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/