Statalist


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

Re: st: Lowess regression


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: Lowess regression
Date   Sat, 1 Dec 2007 11:09:04 +0000 (GMT)

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



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