Hello,
I am quite new to Stata and am trying to analyse some time series data but am having some issues with getting Stata to understand what i am asking
I have a variable - "Year" - which i generated from another variable - "Y" - using command: generate Year = date(Y, "Y"), after(Y)
This gave a list of days from Stata's base year as expected, but i could only format it into looking like's original form (which was a 4 digit year, e.x. 1988) by using command: format Year %tdcY,
which seemed odd but worked.
Now my problem is, when trying to list the observations if i use command: list Year if Year>2000 , it gives me all years from 1966 to 2015, so i guess Stata is still understanding 2000 as the days from January 1st 1960. Is there a way to change this so when i list observations from 2000 it will show them from the year 2000 not the days?
Any help would be much appreciated
Many thanks, Archie
Related Posts with Problem with specifying a range of year or listing years
changing string to floatHi all, greetings! I have a variable named "pcgdp" stored as string. Observations are numeric values…
Exporting results of Ttests with Unequal variancesI have a bunch of variables and I want to conduct a 2-group mean comparison test with unequal varian…
ONE QUESTION about GSEMDear stata users in GSEM , Is it logically correct to have such a model in general? Array …
Converting Weekly Data to Monthly DataI have weekly data that is issued say every Friday (different data sets have different issuance date…
byable problemI have a program pf that folks at Stata help me write to compute variations on probit and I just tri…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with specifying a range of year or listing years
Post a Comment