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
Help in editing (replacing some values) a variable in panel dataI have a survey data set (panel). In the dataset, I have a variable in which few numbers are wrongly…
Accounting and FinanceHi, I am working with two groups; high intangible and low intangible firms. My objective is to find …
Outreg2 1st Stage IV Regression ResultsHello, I am new to Stata and have produced an IV regression using the ivregress 2sls command. This…
Winsorizing DataI have a number of variables which I want to winsorize at 1% and 99% level. Can someone guide how ca…
Significance of the main effects when main effects aren't significant but interaction isDear Statalisters, Hi, I have a problem about interpreting significance of the main effects and int…
Subscribe to:
Post Comments (Atom)
0 Response to Substracting the year out of a business calender date
Post a Comment