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
Esttab : combining regressorsI am trying to create an esttab output similar to this: Array my code is as follows: Code: eststo…
HETTREATREG: module to compute diagnostics for linear regression when treatment effects are heterogeneousDear All: I would like to announce that hettreatreg, a Stata module to compute diagnostics for line…
just tallying my results Survey: Probit regression Number of strata = 3 Number of obs = 527 Number of PSUs = 19 Popula…
Looping simple linear regression and storing beta coefficientHello everyone, i have a dataset in long format, it contains information of 3,167 school's perfomanc…
using tempnumber in commandHello, I am trying to run this code below and having trouble with "tempnumber" in the command. This…
Subscribe to:
Post Comments (Atom)
0 Response to Date format using month and year
Post a Comment