Dear all,
I used the intuition in the Bry and Boschan (1971) algorithm to generate business cycle turning points for my dataset.
Therefore, I used real GDP per capita ("rgdpmad").
The new variable "rgdpmad_point" equals 1 if real GDP is a local maximum (=peak) and -1 if it´s a local minimum (=trough).
This means that recessions refer to the period between 1 and -1 and expansions refer to the period between -1 and 1.
You can see part of my data above.
Now I would like to compute the following variables:
duration, as the length from start to end of the expansion / recession phase (in years)
amplitude, as the average change in output per capita between the turning points
Unfortunately, I have no idea how to compute these two characteristics.
Maybe someone could help?
Thank you very much in advance!
year country rgdpmad rgdpmad_point
1870 Australia 3273.2394 0
1871 Australia 3298.5075 0
1872 Australia 3553.4262 0
1873 Australia 3823.6292 0
1874 Australia 3834.7969 0
1875 Australia 4138.207 1
1876 Australia 4007.2576 0
1877 Australia 4036.0902 0
1878 Australia 4277.4006 0
1879 Australia 4204.9835 0
1880 Australia 4285.3892 0
1881 Australia 4454.8259 0
1882 Australia 4062.6065 -1
1883 Australia 4475.2758 0
1884 Australia 4303.5994 0
1885 Australia 4422.2642 0
1886 Australia 4329.4418 0
1887 Australia 4631.746 0
1888 Australia 4503.7517 0
1889 Australia 4746.8564 1
1890 Australia 4457.6762 0
1891 Australia 4666.4581 0
1892 Australia 3995.4184 0
1893 Australia 3707.8584 0
1894 Australia 3765.5376 0
1895 Australia 3487.2832 0
1896 Australia 3684.9276 0
1897 Australia 3419.9665 -1
I used the intuition in the Bry and Boschan (1971) algorithm to generate business cycle turning points for my dataset.
Therefore, I used real GDP per capita ("rgdpmad").
The new variable "rgdpmad_point" equals 1 if real GDP is a local maximum (=peak) and -1 if it´s a local minimum (=trough).
This means that recessions refer to the period between 1 and -1 and expansions refer to the period between -1 and 1.
You can see part of my data above.
Now I would like to compute the following variables:
duration, as the length from start to end of the expansion / recession phase (in years)
amplitude, as the average change in output per capita between the turning points
Unfortunately, I have no idea how to compute these two characteristics.
Maybe someone could help?
Thank you very much in advance!
year country rgdpmad rgdpmad_point
1870 Australia 3273.2394 0
1871 Australia 3298.5075 0
1872 Australia 3553.4262 0
1873 Australia 3823.6292 0
1874 Australia 3834.7969 0
1875 Australia 4138.207 1
1876 Australia 4007.2576 0
1877 Australia 4036.0902 0
1878 Australia 4277.4006 0
1879 Australia 4204.9835 0
1880 Australia 4285.3892 0
1881 Australia 4454.8259 0
1882 Australia 4062.6065 -1
1883 Australia 4475.2758 0
1884 Australia 4303.5994 0
1885 Australia 4422.2642 0
1886 Australia 4329.4418 0
1887 Australia 4631.746 0
1888 Australia 4503.7517 0
1889 Australia 4746.8564 1
1890 Australia 4457.6762 0
1891 Australia 4666.4581 0
1892 Australia 3995.4184 0
1893 Australia 3707.8584 0
1894 Australia 3765.5376 0
1895 Australia 3487.2832 0
1896 Australia 3684.9276 0
1897 Australia 3419.9665 -1
Comment