Hi all,
I have an (independent) variable 'yearquarter' in my data that looks like "2001q3" and so on.
After performing regression, I have to generate a graph with the Price as dependent variable on the Y-axis and Yearquarter on the X-axis using "margin and marginsplot".
But in order to do so, I want to only keep the last digit of the variable yearquarter, so in this case the "3" of 2001q3.
How can I only keep this last digit?
Thanks!!
Related Posts with Keep last digit of a variable
Error in converting time (hourly) variableHi. I have hourly level data with the format, "2010123123" representing "23:00 Dec 31, 2010". I can …
taking a number from a returned matrix?Dear All, I run the following xthreg (please search xthreg, and install) command
Code:
xthreg i q1…
Adjusted variable and deviationHi,
I want to generate a new variable (RC) with the sum of industry-year (-Risky_Ind- and -year-) a…
Sub-group meta-analysis in StataI have two question:
1: Does Stata allow
sub-group meta-analysis using
mixed effects ? If there is a…
Reshaping Datastream Data (Currency) for StataI have been trying to transpose Datastream data by date. I know how to do this in SAS but I am havin…
Subscribe to:
Post Comments (Atom)
0 Response to Keep last digit of a variable
Post a Comment