I need to obtain the initial parameters that would be used in the Non-Linear Optimization that provides the Nelson-Siegel Svensson parameters for US Treasury Bonds. The Optimization appears to be very sensitive to input parameters and so the initial Ordinary Least Squares Regression that I do to get them is of critical importance. My code is such that if I pass the actual yields to the OLS regression I get the same parameters in that link, which mean the code works and my selection process for the bonds that go into the code is wrong.
My selection method for the bonds: 3 month, 6 month, 9 month, 2 year, 3 year, 5 year, 10 year and 30 year on-the-run par treasury bonds.
I have tried multiple different sets of bonds, but none of them have resulted in initial parameters close to those in the second link, which should be the case.
And one further question I have is, if I do end up obtaining a selection method that provides appropriate parameters, could I apply this to Bonds issued by other Governments? Is there a general selection procedure that tends to work across various currencies?
Please let me know if I need to provide more information.