I would like to reshape my data from wide to long format. My headers are dates every quarter so 31-1-2000 31-3-2000 30-6-2000 31-12-2000 31-1-2001 etc. and my ID value is Country so in column A a list of around 200 countries
I tried changing my headers to be something in the ballpark of Q1 2020 Claims to add a stub to it but even when doing this i cant seem to get the correct result of each country having all 81 quarters list seperately
Ive added a picture below to show what my data looks like at the moment.
Array
Related Posts with Reshape command with quarterly data
PcaHi dears, I would like to have help with the PCA. I have a dataset with ten variables, most of all f…
How to design a correct twoway scatter graph?Good morning to the community. I would like to design a graph like this:Array But I would like fir…
Bootstrapping s.e. with country FEs - Two-stage estimation with fractional logit in second stage.Hi, I am running a two stage regression, where the first stage is a linear regression of a price in…
Interaction termHi Everyone! I try to run a regression with an interaction variable in Stata. The interaction term …
How to specify residual correlation structure in glmHello all, I'm trying to fit a Poisson model to the rate of hospitalizations for children under 5 y…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape command with quarterly data
Post a Comment