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
Regress data with multiple imputation using micombineDear stata-community, we are working on a regression model using SCF-data (https://www.federalreser…
Negative Binomial regressionI have number of children as count variable which I am regressing on the log of parent's income. How…
Event study with Bitcoin and stock prices: How should I approach non-trading days?Hi everyone, I am trying to run a basic event study using daily Bitcoin returns and the S&P500 …
ARDL short run coefficientDear community, I am coming back to you because I have a small problem concerning the estimation of…
Interpreting the marginal effect in Probit with a logged transformed covariateHi everyone, I have a challenge with interpreting the marginal effect in Probit model with a logge…
Subscribe to:
Post Comments (Atom)
0 Response to Converting string variables to numeric
Post a Comment