Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Rule-of-thumb bandwidth in lpoly

From   "Hasan, Syed" <>
To   <>
Subject   st: Rule-of-thumb bandwidth in lpoly
Date   Fri, 18 May 2012 19:14:37 +1000

The command lpoly calculates a rule of thumb (ROT) bandwidth, when it is
not specified. I am trying to understand the ROT bandwidth calculation.
Looking at the lpoly.ado file (185-221 line) I found the following

	if `"`bwidth'"' == "" {
		qui gen byte `bw'= 0
	else {
		qui gen double `bw' = `bwidth' if `tousegrid'

In addition, in 305-306 line, I found the following

	mata: _lpoly_work(`degree',`pwidth', `l', `u', ///
                          `doSE', &_lpoly_`kernel'(), `savevar')

I am not sure what it is doing.I am new is STATA programming and
appreciate any help.

Kind regards
Syed Hasan, RSE, ANU

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index