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
Predicted probabilities after multilevel multinomial logistic regression with random effectsI am trying to get predicted probabilities of a 7-category level-1 variable after running a multinom…
plotting additive interaction after mixed effect ordinal regression (meologit)Hi everyone, In a nutshell, I have the following model for which I would like to automatically comp…
Missing Data in my imputed resultsHello, I am having some problems with the final results of my imputation. I administered the Beck A…
marginsplot title (and text box) centered on graph region, not plot region-marginsplot- expands the title and text box across the entire graph region, which twoway plots don'…
Please help: Merge 1:1 delivers different results after each runthroughI want to merge two datasets based on one variable (neither dataset contains duplicates on this vari…
Subscribe to:
Post Comments (Atom)
0 Response to Substracting the year out of a business calender date
Post a Comment