Hi,

I do a research on bond market. Searching on the net, I could not find any stata cammand which calculate YTM (for each day) based on price, time to maturity, coupon rate, and par value of some bonds. I appreciate if there is a stata command to do so or any other suggestion for obtaining YTM for such a big (daily) data set.