Hi to all!,
I have a question regarding my dataset. I digitized a historical book and I noticed that I made a mistake while coding months.
I coded as DDMMYYY to be able to use it in Stata. However, while converting from Julian calendar to the Gregorian calendar (translating from Turkish), I made a mistake and I coded Dec as Oct and Oct as Dec. Also I coded Jan as Nov and Nov as Jan.
For instance 01Dec2010 should have been 01Oct2010.
How should I correct this in Stata? Is there a code to apply all dates ?
Any help would be appreciated!
Thanks a lot
Related Posts with Changing month in date variable
Suppress repeated cat axis when using -graph bar, by()-What is the easiest general way to suppress a repeated category axis when using -graph bar, by()-? I…
VAR(1) estimation- errors for each observation in the panel dataDear Stata users, I have estimated the VAR(1) model of the form: zt+1=a + Γzt+ ut+1 Where zt+1 is m…
[FMM] Estimating centiles/graphing density of a single observationDear Statalisters, I want to estimate centiles for a single observation after using a finite mixtur…
looping n times, and n is determined by another equationHello, I wish to loop n times, say: forvalues i = 1(1)n{ and n is defined by the last number of i…
ivregress 2sls not endogenous in original modelHello, Perhaps this is too obvious of a question, but when running the 2sls command on my model I g…
Subscribe to:
Post Comments (Atom)
0 Response to Changing month in date variable
Post a Comment