Dear Statalisters
I was wondering if anyone has written or knows of a function that obtains the best interpolation based on two series where we know that one is a smooth transformation of the other.
Say, for example, that y=F(X), we do not know F, but we know its an strictly increasing and Smooth function so that every value of X is paired with a unique value of Y.
What i need know is that given that i have the data for Y and X, i can obtain the "correct" y for any value X of my choice.
To be more concrete. see the example below
Code:
sysuse auto, clear
gen lnprice=ln(price)
sum lnprice
gen Fprice=normal((lnprice-r(mean))/r(sd))
* now we know that there is a smooth and unknown function F that transforms price into Fprice.
* Now, how do I obtain the best interpolation of Fprice for, say, price=5000?
Suggestions are appreciated.
Thank you