I created a lpoly smooth over many values, something like this
Now I want to find the predictions at certain integers x, in my case 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100.
How can I keep only the closest value x_hat for each integer in the list?
Code:
lpoly y x, degree(0) gen(x_hat y_hat) nodraw n(100000000)
How can I keep only the closest value x_hat for each integer in the list?

Comment