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
how can I highlight just one comment in Twoway Graph Dear members, I have a data information by country, from which I made a twoway Graph, however, usin…
Including sampling weight into multilevel logistic model with imputed dataHi everyone, I am analyzing data from a large-scale survey. I used the command mi (sequential imput…
Quantile regression, with specified quantilesDear all, I would like to run a quantile regression with factor variables and clustered standard er…
Troubles with rownumb() in codeHello stata users, I am having troubles with rownumb() in my code. Below is the code and data. Code…
how to graph bar of categorical variablesDear Stata users, Suppose there is a categorical variable which has values of 1, 2, 3 representing …
Subscribe to:
Post Comments (Atom)
0 Response to Keep last digit of a variable
Post a Comment