In BRFSS data the interview date variable is suppressed though the the day , month and year variable is provided separately like the following given sample.
Could anyone be kind enough how I can make a quarterly variable from this separate day, month and year variable ?
* Example generated by -dataex-. For more info, type help dataex
clear
input byte(iday imonth) int iyear
25 1 94
16 6 94
16 6 94
17 6 94
16 6 94
23 6 94
28 6 94
20 9 94
21 9 94
27 9 94
17 10 94
Related Posts with Making quarterly variable from separate day , month and year variable
New version of cprdutil on SSCThanks as always to Kit Baum, a new version of the cprdutil package is now available for download fr…
Year and industry dummyHi, I want to run a fixed effect regression model with both year and industry fixed effect. I would…
keep one observation within a groupDear All, Suppose that I have a dataset Code: * Example generated by -dataex-. To install: ssc ins…
About unbalanced data panelI have a data set , 12 countries and a period of 10 years which of them have different year period, …
Creating age variable from date of birthHi, My data has a birthday variable that I need to convert into age. I've spent some time researchin…
Subscribe to:
Post Comments (Atom)
0 Response to Making quarterly variable from separate day , month and year variable
Post a Comment