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
Check values from one variable against another variableHello, I'd like to write a code which checks if the values in one variable appear atleast once in a…
invalid (variable) r(198) - What does this mean?Hi there, I am trying to run a factor analysis on state ( Code: factor, R1, R2, etc, pcf however…
-xtdpdml- with interaction termHi Stata Experts: I would to use -xtdpdml- to estimate dynamic panel cross-lagged model. My model …
-xtabond2- with interaction termHi Stata Experts: I am using xtabond2 to estimate the impact of interaction term on outcome variabl…
obtaining the first three digitsI have naics codes that have six digits, and I want to get the first three digits in each of them an…
Subscribe to:
Post Comments (Atom)
0 Response to String variable quarterly time
Post a Comment