Hello everyone i am really new to stata and i have an econometrics paper due in a couple days and i have to perform some time series analysis on the data i have.
I am using Monthly data from 2007-12-01 to 2019-10-01 in a "YMD" format. I have been trying to declare my dataset as a time series data but i have been unable to do so because my monthly data is currently in a string type. I have used numerous of Date and Time functions to fix this problem such as date(), month(), monthly(), mofd(), but none of them have given me my desired result.
When i used the mofd(date("2009-08-01", "YMD")) and changed the format all my monthly observations appeared as 2009m8 instead of 2007m12 - 2019m10 which is what i want.
Please if anyone is capable or willing to help me i would deeply appreciate it. I have watched countless youtube videos and gone through the help guide but unable to find the correct command function.
Again i need this to be able to declare time series dataset and perform a Dickie Fuller test for stationary in my time series data. So any help is welcomed
Related Posts with Conversion of monthly sting variable into monthly float variable for time series analysis
event study approach: coefficients different between 2 groupsHi there, I am working with an event study approach to see if the effect of becoming a parent on ea…
Converting String Variables QuestionsHello everyone, I am hoping that you all may be able to help with a question that I have been unsucc…
Fixed effects vs random effect (NBM) and stata commandI am investigating the effect of Human Development Index (country level Independant variable) on Neg…
gen with differences between observationsDear all, I have the following dataset. I am trying to create a variable that generates 1 when the …
creating new variables for duplicates observationsHi All, Please I would like to ask you help. I have an unbalanced panel with id, months, years, cour…
Subscribe to:
Post Comments (Atom)
0 Response to Conversion of monthly sting variable into monthly float variable for time series analysis
Post a Comment