l*********a 发帖数: 1 | 1 I am working on a project and need to do something like this:
for 3 different time period like 30, 40, 50 days, I have three different
interest rates 1,1.2, 1.5. I need to obtain a trendline with y=interest rate
and x=time.Hopefully, the function will be looks like y=a*x+b*x^2. Then I am
gonna plug in a new period of time(like 45 days) and get a new interest rate.
I can use regression to get the parameter, but how can I keep the parameter
from regression and use this function to calculate out a | n****n 发帖数: 5 | 2 When you do the regression, you can specify outstat=table_name. Then you
should check the outstat table to find the regression parameter names. Using
this outstat table, you can apply your resultant regression to the new data.
rate.
【在 l*********a 的大作中提到】 : I am working on a project and need to do something like this: : for 3 different time period like 30, 40, 50 days, I have three different : interest rates 1,1.2, 1.5. I need to obtain a trendline with y=interest rate : and x=time.Hopefully, the function will be looks like y=a*x+b*x^2. Then I am : gonna plug in a new period of time(like 45 days) and get a new interest rate. : I can use regression to get the parameter, but how can I keep the parameter : from regression and use this function to calculate out a
|
|