At worst, I think you need to write everything
yourself.
For speed (and possibly other reasons) the
hard work in -kdensity- is handed to part of
the executable and I can't see any hooks for
using your own kernel. So cloning -kdensity-
would get only part of the way there.
Alternatively, Ben Jann's -kdens- package
seems more transparent.
Nick
[email protected]
D'Exelle Ben
�
> I need to make a kernel density estimation with a kernel
> function that is not supported by the kdensity command. Is
> there a way to define your own specific kernel function
> within the kdensity command? If this is not possible within
> the kdensity command, is there another way to make kernel
> estimations with user-defined kernel functions?
*
* 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/