Hello everyone,
First of all, I have learned a lot from this forum. However, I could not find the answer to this specific questions:
My data looks as follows:
q1 frqcy time
2002 1 2002q1
2002.25 3 2002q2
2002.5 4 2002q3
2002.75 5 2002q4
2003 8 2003q1
When I try to make a scatterplot, It shows:
. scatter frqcy time
string variables not allowed in varlist;
time is a string variable
I have not been able to destring my variable time while I saw on different youtube videos that they also used year+quarter, e.g., 2002q1.
I am sorry, I do not know to copy the Sata results properly.
Related Posts with String variable quarterly time
Nested loop to generate new variablesIs there some way I could use nested loop to recode the following, where one variable loops between …
How can I efficiently generate many dummy variables from substrings? (other than one by one using regexm)Excuse my terrible title, I struggled to communicate what I wanted to do in a concise way. I am wor…
"Equation not found" - Hurdle model using suestHi there, I am using Stata 15. I am trying to estimate the marginal effects for a logit-truncated n…
Compressed and Out of Position Graph After Coefplot and grc1legHi, I have used the coefplot command to plot coefficients from a series of event study regressions …
Modifying labels when appending datasetsI am appending datasets in which the same variable have different label values. In the example below…
Subscribe to:
Post Comments (Atom)
0 Response to String variable quarterly time
Post a Comment