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!!