xinzheng shi <[email protected]>:
I would have guessed you were using -lpoly- where the default is
min(50,_N) but you can specify the number of points via an option. If
you are looking to have a certain "overlap" across grid points given a
bandwidth, or nonstandard spacing of grid points, you can make you own
series of grid points x and use the gen(f) at(x) options.
E.g.
sysuse auto
su wei
g lnw=exp((ln(r(max))-ln(r(min)))/20*(_n-1)+ln(r(min))) in 1/21
lpoly mpg wei, gen(m) at(lnw) nogr
line m lnw
On Jan 23, 2008 4:22 AM, Maarten buis <[email protected]> wrote:
> --- xinzheng shi <[email protected]> wrote:
> > I would like to know how to identify the number of
> > grid point in the nonparametric graph. I know the
> > usual way to identify the bandwidth is
> > 0.9*sd*N^(-0.2). But is there any formular to link
> > bandwidth with number of grid points given that
> > observation number is N.
>
> You don't tell us what nonparametric graph you are
> talking about (there are many, e.g. -twoway fpfit-,
> -twoway mband-) but given your reference to
> bandwidth I assume you are talking about -lowess-.
>
*
* 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/