Re: Roll Add-in
Posted: Wed Aug 01, 2012 10:41 am
Hi Gareth,
Sorry, I am not sure if I fully understand what you meant. Maybe I should illustrate my question better:
Below is my rollcoefs table generated from performing a rolling regression. For each observation, say, 2001M01, the rolling regression (with a 12 observation window, 1 observation step, which is why all observations prior to 2001M01 do not have coefficients) would generate a series of coefficients for each variable (w,x,y,z and constant c)
I thought the fitted / estimated value for that observation (using 2001M01 as an example) is calculated by multiplying that observation's calculated coefficients (in the below example, 2001M01 -1.431364, -0.616759, 0.823025, 0.223771, and 7.226813) with the actual variables of that observation (input file).
When you say "For each roll (set of coefficient) there is a complete series of Y values", are you saying there is a table such that it contains rows of observations, with a single column that consists of sum of products between coefficients and variables (rollcoeff_w * w + rollcoeff_x * x... + rollcoeff_y * y)? Or, am I taking the wrong approach and confused?
obs ROLLCOEFS_W ROLLCOEFS_X ROLLCOEFS_Y ROLLCOEFS_Z ROLLCOEFS_C
2000M01 NA NA NA NA NA
2000M02 NA NA NA NA NA
2000M03 NA NA NA NA NA
2000M04 NA NA NA NA NA
2000M05 NA NA NA NA NA
2000M06 NA NA NA NA NA
2000M07 NA NA NA NA NA
2000M08 NA NA NA NA NA
2000M09 NA NA NA NA NA
2000M10 NA NA NA NA NA
2000M11 NA NA NA NA NA
2000M12 NA NA NA NA NA
2001M01 -1.431364 -0.616759 0.823025 0.223771 7.226813
2001M02 -1.480654 -0.624711 0.748843 0.204403 7.391734
2001M03 -1.747859 -0.462728 0.632914 0.445469 7.530357
2001M04 -1.100580 -0.544855 0.194759 0.425805 6.120864
Sorry, I am not sure if I fully understand what you meant. Maybe I should illustrate my question better:
Below is my rollcoefs table generated from performing a rolling regression. For each observation, say, 2001M01, the rolling regression (with a 12 observation window, 1 observation step, which is why all observations prior to 2001M01 do not have coefficients) would generate a series of coefficients for each variable (w,x,y,z and constant c)
I thought the fitted / estimated value for that observation (using 2001M01 as an example) is calculated by multiplying that observation's calculated coefficients (in the below example, 2001M01 -1.431364, -0.616759, 0.823025, 0.223771, and 7.226813) with the actual variables of that observation (input file).
When you say "For each roll (set of coefficient) there is a complete series of Y values", are you saying there is a table such that it contains rows of observations, with a single column that consists of sum of products between coefficients and variables (rollcoeff_w * w + rollcoeff_x * x... + rollcoeff_y * y)? Or, am I taking the wrong approach and confused?
obs ROLLCOEFS_W ROLLCOEFS_X ROLLCOEFS_Y ROLLCOEFS_Z ROLLCOEFS_C
2000M01 NA NA NA NA NA
2000M02 NA NA NA NA NA
2000M03 NA NA NA NA NA
2000M04 NA NA NA NA NA
2000M05 NA NA NA NA NA
2000M06 NA NA NA NA NA
2000M07 NA NA NA NA NA
2000M08 NA NA NA NA NA
2000M09 NA NA NA NA NA
2000M10 NA NA NA NA NA
2000M11 NA NA NA NA NA
2000M12 NA NA NA NA NA
2001M01 -1.431364 -0.616759 0.823025 0.223771 7.226813
2001M02 -1.480654 -0.624711 0.748843 0.204403 7.391734
2001M03 -1.747859 -0.462728 0.632914 0.445469 7.530357
2001M04 -1.100580 -0.544855 0.194759 0.425805 6.120864