Hello,
I have around 35 economic variables for each frequency (Annual, Quarterly, Monthly, Weekly and Daily). However, the data source from where I pull this information (FRED) places the name of the variable on the year column and leaves a blank for the actual data column in excel, which is where I update the data on a regular basis. For now, I move the top row cells to the right in excel to ensure that the names of the variables correspond to the column with the corresponding data in it. However, I was wondering if there was a way to do it in stata? I tried looking it up online but have not found anything which offsets column name by one column. I can replace the variables but given that I have around 35 variables for each frequency, I was wondering if there was a command which could do it easily without me having to type replace for each and every column. And the names of the variables are also not very intuitive. Here is a sample table here to show how my data looks: (I am sorry, I am not able to install dataex to show it in the format that it is supposed to be in for posting questions.) My apologies in advance if this is messy but we have major issues with stata at work, where we are not able to install any user defined programs. Thanks in advance for your help!
Rama
I have around 35 economic variables for each frequency (Annual, Quarterly, Monthly, Weekly and Daily). However, the data source from where I pull this information (FRED) places the name of the variable on the year column and leaves a blank for the actual data column in excel, which is where I update the data on a regular basis. For now, I move the top row cells to the right in excel to ensure that the names of the variables correspond to the column with the corresponding data in it. However, I was wondering if there was a way to do it in stata? I tried looking it up online but have not found anything which offsets column name by one column. I can replace the variables but given that I have around 35 variables for each frequency, I was wondering if there was a command which could do it easily without me having to type replace for each and every column. And the names of the variables are also not very intuitive. Here is a sample table here to show how my data looks: (I am sorry, I am not able to install dataex to show it in the format that it is supposed to be in for posting questions.) My apologies in advance if this is messy but we have major issues with stata at work, where we are not able to install any user defined programs. Thanks in advance for your help!
Rama
GDPCA | GDPA | MEHOINUSA646N | RTFPNAUSA632NRUG | ||||
date | value | date | value | date | value | date | value |
01/01/1929 | 1056.6 | 01/01/1929 | 104.6 | 01/01/1984 | 22415.0 | 01/01/1950 | 0.6 |
01/01/1930 | 966.7 | 01/01/1930 | 92.2 | 01/01/1985 | 23618.0 | 01/01/1951 | 0.6 |
01/01/1931 | 904.8 | 01/01/1931 | 77.4 | 01/01/1986 | 24897.0 | 01/01/1952 | 0.6 |
01/01/1932 | 788.2 | 01/01/1932 | 59.5 | 01/01/1987 | 26061.0 | 01/01/1953 | 0.6 |
01/01/1933 | 778.3 | 01/01/1933 | 57.2 | 01/01/1988 | 27225.0 | 01/01/1954 | 0.6 |
01/01/1934 | 862.2 | 01/01/1934 | 66.8 | 01/01/1989 | 28906.0 | 01/01/1955 | 0.6 |
01/01/1935 | 939.0 | 01/01/1935 | 74.3 | 01/01/1990 | 29943.0 | 01/01/1956 | 0.6 |
Comment