How can i draw curve fitting for panel data?


#1

I want to draw curve fitting in other words I want draw fitted values(y_hat) vs dependent variable (x) but i have panel data two groups are "ID and Time(Year)
which are the data positions and time.

I use “np package” and done Nonparametric regression and obtained fitted value.
In my model both Id and Time are random. Then I estimate f(x,Id,Time). These are fitted values.

Now how can I draw curve fitting?


#2

It’s much easier to answer questions about code with code, so if you could include reprex (short for reproducible example), that would help us help you.

If you’ve never heard of a reprex before, you might want to start by reading the tidyverse.org help page.