How to generate different series in the same regression?
Posted: Fri Aug 04, 2023 2:54 am
Hello!
I want to generate three regressions, for each x_{%variables}, but the result of d1, d2, and d3 is modified and they generate the same result in the three new series. My commands are the following:
smpl 2018q1 @last
%SERIES = "serie1 serie2 serie3"
for %variables {%series}
for !i=1 to 3
genr d{!i}=(x_{%variables}-sdlogy)^2
next
next
My results are the same for d1, d2 and d3. For example:
results d1:
Modified: 2018Q1 2023Q1 // d1=(x_serie1-sdlogy)^2
Modified: 2018Q1 2023Q1 // d1=(x_serie2-sdlogy)^2
Modified: 2018Q1 2023Q1 // d1=(x_serie3-sdlogy)^2
And what I want is to have three series, like this:
d1=(x_serie1-sdlogy)^2
d2=(x_serie2-sdlogy)^2
d3=(x_serie3-sdlogy)^2
I would appreciate any comments. Thanks in advance.
I want to generate three regressions, for each x_{%variables}, but the result of d1, d2, and d3 is modified and they generate the same result in the three new series. My commands are the following:
smpl 2018q1 @last
%SERIES = "serie1 serie2 serie3"
for %variables {%series}
for !i=1 to 3
genr d{!i}=(x_{%variables}-sdlogy)^2
next
next
My results are the same for d1, d2 and d3. For example:
results d1:
Modified: 2018Q1 2023Q1 // d1=(x_serie1-sdlogy)^2
Modified: 2018Q1 2023Q1 // d1=(x_serie2-sdlogy)^2
Modified: 2018Q1 2023Q1 // d1=(x_serie3-sdlogy)^2
And what I want is to have three series, like this:
d1=(x_serie1-sdlogy)^2
d2=(x_serie2-sdlogy)^2
d3=(x_serie3-sdlogy)^2
I would appreciate any comments. Thanks in advance.