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

st: RE: Nonparameteric regression lines

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

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

*   For searches and help try:

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