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
Structural Equation Model (SEM) with "initial value not feasible" error.Hi Statalist members, I'm trying to figure out if there is a two-way relationship between stock mar…
How?: Table with incremental marginal effects after logit model with interactionHi everyone! How can I output to Latex (e.g. with esttab), after a logit model with interaction term…
lasso relative importance of covariates to response variableHas anyone worked out yet how to graph the relative importance of covariates selected after running …
Marginsplot after multinomial LCAHi, I wonder, has anybody tried to visualize multinomial/ordinal with maginsplot, similarly as the o…
Effect size & MANOVAHello all, New to STATA. I am trying to calculate eta2 or partial eta2 for a MANOVA: manova relatio…
Subscribe to:
Post Comments (Atom)
0 Response to Date format using month and year
Post a Comment