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
logit regression with categorical variables: obtain p-value of the difference to the basecategoryHi, I am trying to estimate a logit model using survey data. I have a categorical variable (age gro…
how to keep month end data from daily data (with various month-ending dates)Dear All, I have a daily data set with different month-ending date (sometime on 27 or 28 or 29 or 30…
Interpreting Difference in Difference Regression ResultsFirst of all apologies that I am a novice statistician. My data set is a national panel survey from …
Forming new variable using several existing variablesHi, I am trying to create a variable "IN" that takes value from existing variables "IN_1 IN_2 IN_3 I…
Results are generating omitted dummy variables for fixed effect panel regressionsI have the following fixed effect regression where i wanted to control for ID and year fixed effects…
Subscribe to:
Post Comments (Atom)
0 Response to Substracting the year out of a business calender date
Post a Comment