Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Same bandwidth using different kernel functions

    Hi everyone,

    I am trying to do a nonparametric regression using -npregress- command, but Stata gave the same bandwidth when I apply Biweight, Triangle and Epan2 kernel function with the default cross validation bandwidth selection.


    The following is my code and output
    Code:
    npregress kernel epsilon ptexp afqt, kernel(triangle) estimator(constant) noderivatives
    Click image for larger version

Name:	triangle.png
Views:	1
Size:	141.9 KB
ID:	1416251



    Code:
    npregress kernel epsilon ptexp afqt, kernel(biweight) estimator(constant) noderivatives
    Click image for larger version

Name:	biweight.png
Views:	1
Size:	142.8 KB
ID:	1416252



    Code:
    npregress kernel epsilon ptexp afqt, kernel(epan2) estimator(constant) noderivatives
    Click image for larger version

Name:	epan2.png
Views:	1
Size:	53.9 KB
ID:	1416253



    In my regression, ptexp is potential experience, it is an integer variable which can take value from 1 to 20. afqt is an standardized test score which is continuous.


    I use the exactly the same data set for each nonparametric regression. The only difference is the choice of kernel function.
    The big issue here is that the bandwidth for ptexp is 4.004203 and for afqt is 0.7226754 all the time no matter which kernel function I use.

    I don't understand why I got the same bandwidths even if I chose different kernel functions. Is it possible that I may get the same bandwidth no matter which kernel function I used?

    Thank you so much

    Xizi
Working...
X