Dear statalist,
This might be an easy question, but I didn't figure out how to do this. Say I have a set of years, 2010, 2014, 2015, 2019, 2020 etc, I want to create two dates, start date and end date, to account for the first day and last day of the year, e.g., 01jan2010 and 31dec2010, how to create these two variables? Thanks a lot for your help.
Related Posts with how to create the start and end date for a year
R-squared of FE-regressionDear, with the following data: Code: * Example generated by -dataex-. To install: ssc install data…
Creating a new set with every possible pair within a groupDear all, I would like to create a new dataset that includes all possible pairs of observations, wi…
Panel cointegration with I(0) and I(1) variablesHi all! I need to run a cointegration test with the indipendent variables of the model I(1) and the…
Need help with creating certain variablesHi. EmpCode OfficeCode Year Sept_30 In Out Existing 1 11 2011-12 . . 1 12 2011-12 1 . 1 . …
"i." Command: Omitted dummy variable due to collinearity (NOT the baseline omission)Hi all, When I use the i.command to run the regression as follows: Code: reg coverage i.year i.p…
Subscribe to:
Post Comments (Atom)
0 Response to how to create the start and end date for a year
Post a Comment