I have half-yearly data starting from June 2017 to June 2019. In excel wide format data it is written as x1 2017/06 x1 2017/12.....x12019/06 for example for x1 variable. When I import it to Stata and reshape to long, the time variable is not what it is actually. For example, 2017/06 is read as 1960h2 (second half of 1960). How do I write it in Excel so that it gets imported correctly or, anyway to fix it after import? Many thanks.
Related Posts with half-yearly data importing to Stata
looping and exporting multiple regression results into a single tableHello, I am attempting to export the results from multiple univariate regression models estimated us…
getting scatter and lfit to assign the same color for an observationHi All, I am using twoway to generate a scatterplot with an lfit overlay for several individual uni…
importing and appending loopsDear all, I tried appending some files using the following codes. Both worked but there are some pr…
Change labels form another datasetHi Stataitians. I'm new in Stata. I'm trying to change the label of several variables. I have the d…
Separating big string variablesDear All, I have downloaded the dataset from the scimago journal ranking website. The downloaded da…
Subscribe to:
Post Comments (Atom)
0 Response to half-yearly data importing to Stata
Post a Comment