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
Extracting subset date from a timestamp date variableDear Colleagues Please help: I am trying to extract the first 8 characters (NEWdate) from a date fo…
Extracting subset date from a timestamp date variableDear Colleagues Please help: I am trying to extract the first 8 characters (NEWdate) from a date for…
Extracting subset date from a timestamp date variableDear Colleagues Please help: I am trying to extract the first 8 characters (NEWdate) from a date fo…
infix usingHi, I am working with HCUP NIS data files. I get "using required". I don't know why! /**********…
bsqreg with fixed effectHi everyone, Is there an alternative to xtqreg with Bootstrapped errors? When I use bsqreg, I can n…
Subscribe to:
Post Comments (Atom)
0 Response to Keep last digit of a variable
Post a Comment