### Kernel Density Series Transformation

Posted:

**Wed May 03, 2017 10:00 pm**If I have an existing series named x, and I want to store the kernel distribution of x in a series object named x_kernel, is there supported commands for this? The most common Epanechnikov formula would go something like:

How can I implement the indicator function to truncate everything outside the domain [-1,1] to 0?

Please write the complete equation so I can see how you did it, thank you.

*Edit* On second thought, I guess I would need two series objects. One for the x values, and one for the y values.

Code: Select all

`series x_kernel = (3/4)*(1-x^2) ....?`

How can I implement the indicator function to truncate everything outside the domain [-1,1] to 0?

Please write the complete equation so I can see how you did it, thank you.

*Edit* On second thought, I guess I would need two series objects. One for the x values, and one for the y values.