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
Exogenous variables in DCC modelHi all, Is there any way to include exogenous variables in a DCC model? I'm using the mgarch dcc co…
Interpretation of user-written khb program output, reduced OR-full OR != diff ORI'm using the user-written package khb in Stata15 on Windows 10. My data are sensitive and cannot be…
t-test on coefficient of probit regressionHello there, I'm trying to find the impact of contingencies on an explanatory variable in a probit r…
For loopHi guys, I would like to make a loop that includes several different variables for different databa…
Looping through different databasesHi guys, I would like to make a loop that includes several different variables for different databa…
Subscribe to:
Post Comments (Atom)
0 Response to Converting string variables to numeric
Post a Comment