Hello,
I am trying to expend one data set with another data set by using the command "append using, keep (...)". However, I have realised that the "date" variable in both data sets do not have the same format. In the master data set the date is formatted as " 5 August 2020" while in the other data set it is formatted as "Sunday, 17th November 2019". I have realised that there seems a problem in expanding variable observations if they are not in the same format. It looks like the data entries for the dates are ignored when expanding the master data set. Can someone help with formatting "Sunday, 17th November 2019" into a proper date format for appending?
Thank you.
Related Posts with Date Conversion
Coefplot - how to get mlabels similar to sorted ylabels?Dear Statalister, I'm trying to substitute ylabels with mlabels, but can't get the mlabels to sort …
Merging with changing ID over timeHello everyone, I am trying to merge two datasets containing observations on firms. Each dataset co…
local commandDear All, Is it possible to have a more concise way to do the following: Code: local dropv "o.2007y…
Constructing Appropriate WeightsI have a dataset of households. The level of the data is as follows: households < district < …
lclogit-Latent Class (Pacifico and Yoo)Dear members, I am using lclogit for fitting latent class conditional logit models with the guide p…
Subscribe to:
Post Comments (Atom)
0 Response to Date Conversion
Post a Comment