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
Identify missing observations unbalanced panelDear Stata users, I have an unbalanced panel data set with the following variables: id, year, nobirt…
Create a new variable that count for the number of observations of a variable for the previous yearHello everyone, I have trouble creating a new variable with my data. In my data every event_date co…
3SLS and heteroskedasticityHi, I'm running a system of equations model using reg3. Code: Code: reg3 (dlrgdp L.dlrgdp dzsly …
wanted to create a regression tables,needed a dependent variableI am working on a hedge funds dataset. I wanted to create a regression tables. For creating regressi…
Extracting the numbers after repeated characters in a string variableHello, I am trying to obtain the distance between two geographic locations using public transportat…
Subscribe to:
Post Comments (Atom)
0 Response to how to create the start and end date for a year
Post a Comment