Hello everyone,
I have some issues with my dataset and I really need your help!! I try to set my monthly time series data, but unfortunately Stata does not read them. I have data from 2008m1 to 2018m12.
I have used the following code: generate double time2 = date(time, "YM")
format % tm time2
Then, I';ve tried sset my data and here is the problem:
tsset time2, monthly
time variable: time2, . to .
delta: 1 month
Stata does not accept the convesion, It seems that I have no time data and I cannot employ the model I have to. What I have to do in order to fix this? Did i miss something when I ;ve convert the string varibale to mumeric? I really appreciate your help!!
Related Posts with Converting string variables to numeric
How to divide column totals with an output that includes 95%CIDear all, I have a dataset with two continuous variables. I had calculated the total of each column …
To convert 'blue digit ' column into 'black digit' column (string to normal variable)Hi. I am using a data set which contains more than 600,000 observations on household expenditure. T…
Graph label while using "ciplot" commandDear All, Here is my data. It is in wide form (survey data). For instance I will use Vitamin D vari…
Time seriesI use ID as a symbol for the company I use, each company has more than 1 event with different dates.…
stcurve showing wrong analysis (follow-up) timeHi Statalist, I am running a survival analysis to find the difference in occurence of an event betw…
Subscribe to:
Post Comments (Atom)
0 Response to Converting string variables to numeric
Post a Comment