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
Create dataset - longitudinalHello, I have a dataset (example below) where I use the command "append" to add the datasets: i_ind…
Dummy dependent: ANOVA v logitThis is a statistics question rather than a Stata question, but would appreciate any advice. After …
Creating a Graph That Shows Treatment Status by Group Over Years of A PanelHi all, I'm stuck with a graph I'm trying to figure out. I am in one of those difference-in-differe…
How to drop repeated years in a panel datasetHi everyone, I have a panel dataset with countries and years from 1999 to 2019. However, for each c…
Baseline table package showing p-value and statistics-value There has been some useful table1 package, such as table1 and table1_mc. However, they can not show…
Subscribe to:
Post Comments (Atom)
0 Response to Making quarterly variable from separate day , month and year variable
Post a Comment