Hi everyone,
In my dataset I have business calender dates in the format %tbtrdates. I'm trying to extract the year of said dates, but I'm getting dates that are about 48 years off (not exactly 48 years off, i checked that). I'm not a regular user of Stata, so it might be a dumb question. I used the code:
generate year = year(date)
and
generate year = yofd(date)
but both yield the same faulty results.
is there a way to extract the year out of the business date cleanly?
Friendly regards,
Ron Dankers
Related Posts with Substracting the year out of a business calender date
Editing table label using latexHello, I am struggling to correctly output a table label using latex. The problem is that each of m…
Input+end inside a ProgramHi, I like using input/end, in order to easily type data, Code: clear input float var1 1 2 3 4 5 e…
xml_tab does not output required tstat or pvalueI use the following code to output regression results. Code: xml_tab r1, replace drop() below tsta…
Tabulate at least 10 variables having same value labels in one table, displaying value labels percent on columsHello dear experienced Stata users. I am a new Stata user. I have been using it for about 5 months a…
Boottest command for multiple hypothesis testingDear Statalists, Hoping for someone to explain: I want to know whether boottest, a user-written comm…
Subscribe to:
Post Comments (Atom)
0 Response to Substracting the year out of a business calender date
Post a Comment