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
Bootstrap and Fisher's exact testHi everyone, I am kind of new to the forum. I have a question relates to resampling and Fisher's exa…
Prediction for discrete-time frailty models with normal heterogeneity (xtcloglog)Dear Statalist. I have estimated a discrete-time hazard model with a normal unobserved heterogeneit…
mofd and twoway connected graph issueHello, I use Stata 14.2. I am working on a cross-sectional dataset. I have used the command mofd to…
matching the x/y coordinates of flats/houses to a environmental noise mapMy aim is to match the x/y coordinates of flats to a environmental noise map. The latter is segmente…
Reshape Wide to Long Data with Linked VariablesHello, I hope everyone had a nice Christmas and a good start to the New Year. I apologize in advan…
Subscribe to:
Post Comments (Atom)
0 Response to Converting string variables to numeric
Post a Comment