Hi. I have panel data and I am supposed to do within transformation to remove the fixed effects. Basically, I have to create a variable $y-\Bar{y}$. I know usually I can do this using the within transformation of the plm package. However, I have to run a non-parametric regression. Therefore, my transformation should look like this:
Hi. Thank you for your response. I am currently looking at {np} package and trying to understand if I can do this. I have used it for running a non-parametric regression. However, I have no idea how it can be done.