I would like to run a regression with a variable that is the ratio of green Joint ventures (gJV) from overall green Alliances (gSA) in my sample over a time frame of three years. I have tried to use the
command with this code
. I would like to have a window of three years and have every year appear only once (hence the stepsize would be 3 as well).
This command does not work and
appears.
I am very unsure how to perform this calculation and whether it is possible to calculate the moving averages with the help of
or other commands and then simply create ratios of these means over three years?
I would very much appreciate any help on that matter.
Code:
rolling
Code:
rolling ratio=(gJV/gSA), window(3) stepsize(3): summarize ratio, detail
This command does not work and
variable ratio not found, an error occurred when rolling executed summarize r(111);
I am very unsure how to perform this calculation and whether it is possible to calculate the moving averages with the help of
Code:
rangestat
I would very much appreciate any help on that matter.
Comment