Hi, I am trying to make a new variable called "date" using the month and year in my dataset. The variable "month" is a byte and the variable "year" is an int. I would like to make it into the format <year>m<month> and call this variable date. For example, month 01 (january) and year 2022 would become 2022m01. This variable should be a float. I'm unsure of how to convert these two variables into a single float variable with that format. Thanks.
Related Posts with Date format using month and year
Applying macro to local data file locationHi I hope this is clear enough-- I have read that I should create a new directory to be able to hide…
Generating index numbers with panel data Hello, Would anyone know whether there exists a possibility to generate index numbers over time wit…
Importing*.sav files from sub-directories using loop.Hi, I am trying to import .sav files from all sub-directories using the following, but nothing is ha…
margins after mlogit not estimable - why?HI all, Ran the below multinomial logit model and some of the margins are not estimable. What are so…
OR from multi-level fixed logistic regression modelI have a dataset comparing approach 1 vs approach 2 for an measurement, the total events rate in bot…
Subscribe to:
Post Comments (Atom)
0 Response to Date format using month and year
Post a Comment