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
putexcel column names when not all possible columns have valuesI am trying to create several descriptive tables, using putexcel. I am struggling to get a working m…
Multiple regressions by group in one output tableHello Stata Experts! Currently I am lost at "just" finding the right output form/ format, which is …
placebo test of SCMin the article''Synthetic Control Methods for Comparative Case Studies: Estimating the Effect of Cal…
How to put stars instead of pvalues in output of esttab from a non estimation commandHello, I want to have a nice LaTeX table with some statistical information about some variables of …
How to do bootstrap test for a nonlinear mediation effect with a moderator and fixed effectsHi Statalist, I have a problem about how to use bootstrap test to further detect a mediation proces…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with specifying a range of year or listing years
Post a Comment