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

st: RE: Nonparameteric regression lines


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Nonparameteric regression lines
Date   Wed, 7 Aug 2002 13:55:23 +0100

ERSADO, LIRE
> 
> I would like to superimpose (overlay) two or more 
> non-parameteric regression
> lines on one graph. Does anyone have a program or know of 
> an easier way for
> doing this?
> 

There are several programs for nonparametric 
regression (or smoothing) written in Stata. 

Use -findit- to locate some. 

However, -ksm- works very well in my experience. 

Here is an example with the auto data: 

foreach w of num 7/9 { 
	ksm mpg weight, lowess bw(0.`w') gen(p`w')
} 

gra mpg p7 p8 p9 weight, c(.sss) sy(oiii) 

Nick 
[email protected] 
*
*   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