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
Endogeneity in non-structural modelingHello Stata users, Can you pleas tell me how we can adress endogeniety in non-structural modeling? …
Programming dummyI posted this question in a response to a topic earlier, but I am not sure whether that is the right…
Create a table with sectoral share valuesDear all, I am currently working with a dataset that contains information on quarterly gross value …
Calculating Standard Deviation of the ResidualsHi all, I ran an ECM and after this, I want to inspect the Standard Deviation of the Residuals plot …
how to run a DEA meta frontière in stata?I want to implement a meta boundary model to take into account the specificity of each group in the …
Subscribe to:
Post Comments (Atom)
0 Response to Substracting the year out of a business calender date
Post a Comment