HI!
if i want to (using data from January 1971 to December 2020) transform the the month and year variables into a monthly date variable how can I do it in Stata?
I know i have to use the gen date = ym(year,month) and the the
format date %tm command
but I am unsure how to write those with my data being from January 1971 to December 2020
Thank you!
Related Posts with Transforming Variables
Do file beginner question I am trying to improve my understanding of do file scripting. For disclosure, I program competently…
How to interpret the coefficient of the variable that takes first difference?Panel data model. x takes first difference to become stationary. Then how to interpret the coefficie…
Compare coefficients after reg3This might be something simple, but I cannot wrap my head around it. I am trying to compare coeffici…
How to test the difference between marginal effects in StataI have an ordinary least squares regression with an interaction term: Code: regress price c.trunk#…
Reverse each axis after -grqreg-Dear All, Applying the -qreg- command, I attempt to reverse the X- and Y-axis in the graphs compute…
Subscribe to:
Post Comments (Atom)
0 Response to Transforming Variables
Post a Comment