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
How to reconvert the set of values that a variable can assume to a new set of values simultaneouslyHello, I have a variable called HighEd1 that can assume values from 1 to 8 and each value stands fo…
IIA assumption test after conditinal logitHi, Is there any way to test IIA assumption following conditional logit(clogit)? Found it for mlogit…
VIF in a mode with dummies/fixed effectsDear Statalists, I have 3 questions on the use of VIF in a model with dummies or fixed effects. The …
Merging set of variablesHi! I'm working with my master thesis and struggling av bit with handling some of my variables in St…
Panel data analysisI am working on a dataset that you can find attached, which displays as dependent variable the votes…
Subscribe to:
Post Comments (Atom)
0 Response to Date format using month and year
Post a Comment