I am working on quarterly panel data with N=51 and T=40. I am interested in running rolling regression with window of 15 quarters, so that the first regression is calculated for first 15 quarters, second from 16 to 31 and so on for each country . I am running the following code:
bys i : asreg interestrate gfc cpiinflation ex_ln outputgap, wind(time 15)
where i refers to countryid and time represents quarter.
However, after running the code, I get the following output:
_Nobs
.
.
.
.
.
6
7
8
9
10
11
12
13
14
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
where 15 keeps on repeating and first 5 values are not being estimated. Can anyone help please?
bys i : asreg interestrate gfc cpiinflation ex_ln outputgap, wind(time 15)
where i refers to countryid and time represents quarter.
However, after running the code, I get the following output:
_Nobs
.
.
.
.
.
6
7
8
9
10
11
12
13
14
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
15
where 15 keeps on repeating and first 5 values are not being estimated. Can anyone help please?
Comment