Dear all,
i have a variable called E, which is the completed date of an acquisition (see screenshot). The variable is non-numeric string and in %14s format. De date in the variable is displayed as follows:
11jan2001. Now I want to created a new variable called fyear and subtract the last four digits (=year of acquisition) from the E variable. I've got problems doing this because the variable is non-numeric. Is there anyone who can help me?
Thanks in advance!Array
Related Posts with subtracting year from a non-numeric variable
OR, IRR and multivariate analysisDear Listers I am working with a dataset much like the one you see here. Code: * Example generate…
How do I run a Ttest in Stata when I have multiple groups but I only want to compare specific groups? (More Information Below)I am trying to do a basic Ttest. There 6 groups based on gender, race and ethnicity. I want to run a…
New version of wridit on SSCThanks as always to Kit Baum, a new version of the wridit package is now available for download from…
Can I make a bivariate histogram for two indicator variables?Let's say I have two dummy variables like this. Code: set obs 100 gen A=runiformint(0,1) gen B=run…
bar graph from matrix with CI as error barsHi all, I am trying to figure out how to make bar graph out of a matrix. I know there have been many…
Subscribe to:
Post Comments (Atom)
0 Response to subtracting year from a non-numeric variable
Post a Comment