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
Merging_adviseHi statalist community, I need some help with merging File A has a unique ID File B has a unique I…
Most Common Medication Unweighted and WeightedHello, I'm currently working with NHANES data attempting to combine multiple survey years together …
Creating New Variable based on Values of Another Variable (by group)Hello Stata Friends: I would like to make the values of one variable, each into their own new varia…
Formulas of the regs' standard errorsWhere can I find the formulas that the different vce() in the reg command use? The help file does no…
Placing a dot and a line segment on a graphHi, I'd love to get some help on drawling a dot (or a filled in circle) at (126, 0) and a line segme…
Subscribe to:
Post Comments (Atom)
0 Response to subtracting year from a non-numeric variable
Post a Comment