Hi,
I'm Salvatore. I am doing a research paper using Panel data to study the dynamics of bank NPLs. In my model, I use microeconomic (bank-specific) variables with respect to which I actually managed to use the Stata reshape long command to have a dataset in the long format (roughly 8000 observations). The problem, however, concerns the introduction within my model of macroeconomic variables (such as rates of change in government debt relative to GDP) with respect to which, there is a much smaller number of observations (10 as I use yearly delta data from 2021-2011). Beyond the small number of observations with respect to which I will then make my own conclusions once I have made the estimates, I would like to ask how I can introduce these data into my dataset so that once I run the reshape long command I have no problem getting the result I want. I am asking this because I have made some attempts in the past but obtained a different result from the desired one.
I tried to paste here the last rows for my dataset format-wide, but since I am using 6 variables and a 10-year time period I cannot paste without having problems with the format. However, you can see the data for the Public debt I would like to introduce in the model (delta actually).
These are the data
But I don't know how to do it. I tried to paste those values on an xls file but the result was wrong. Could you please help me as I don't know if it is better to paste them on xls file in a wide format or first launch on Stata the command reshape long and then paste them.
P.s. I can arrange the data here listed both in wide and long format on excel, therefore, this seems to me that this is not the main issue.
Thanks in advance. Hope to be clear. As you can understand Public debt is a variable in my model and not a cross-sectional unit but at the same time it is a variable which is not specific to any banks in my dataset which are my cross-sectional units
To clarify I have 117 cross-sectional units (banks) with 6 variables each measured from 2021-2010. This is to make sure that you understand the dataset I am working with. P.s. I managed to reshape this dataset from wide to long but I don't know how to add the macro variables as the Public debt that I mentioned before (actually there are others but I guess that once understood what to do with just one it would be pretty straightforward for the others later on).
I'm Salvatore. I am doing a research paper using Panel data to study the dynamics of bank NPLs. In my model, I use microeconomic (bank-specific) variables with respect to which I actually managed to use the Stata reshape long command to have a dataset in the long format (roughly 8000 observations). The problem, however, concerns the introduction within my model of macroeconomic variables (such as rates of change in government debt relative to GDP) with respect to which, there is a much smaller number of observations (10 as I use yearly delta data from 2021-2011). Beyond the small number of observations with respect to which I will then make my own conclusions once I have made the estimates, I would like to ask how I can introduce these data into my dataset so that once I run the reshape long command I have no problem getting the result I want. I am asking this because I have made some attempts in the past but obtained a different result from the desired one.
I tried to paste here the last rows for my dataset format-wide, but since I am using 6 variables and a 10-year time period I cannot paste without having problems with the format. However, you can see the data for the Public debt I would like to introduce in the model (delta actually).
These are the data
Code:
-2.897617514 15.80909769 -0.223214286 0.149031297 -0.445103858 -0.36954915 -0.073855244 2.188679245 4.743083004 5.680868839 0.419463087 2.229845626
P.s. I can arrange the data here listed both in wide and long format on excel, therefore, this seems to me that this is not the main issue.
Thanks in advance. Hope to be clear. As you can understand Public debt is a variable in my model and not a cross-sectional unit but at the same time it is a variable which is not specific to any banks in my dataset which are my cross-sectional units
To clarify I have 117 cross-sectional units (banks) with 6 variables each measured from 2021-2010. This is to make sure that you understand the dataset I am working with. P.s. I managed to reshape this dataset from wide to long but I don't know how to add the macro variables as the Public debt that I mentioned before (actually there are others but I guess that once understood what to do with just one it would be pretty straightforward for the others later on).


Comment