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
Import Jason "too many veriables"Hei, i have a big json file which i try to import to Stata. Using insheet using "C:\Users\stinavn/…
Rolling window for VARHi I estimate a structural vector autoregression, imposing long-term restrictions, and estimate the …
Nested loop question (index changes for every loop)Hi, Thanks very much in advance for your time. I want make the following commands into the nested lo…
Test hypothesis using StataI have the following regression model Array That corresponds to the following dataset: Array How …
How to test instrument orthogonality in Stata?Hi all, Is there a specific command where I can use to test instrument orthogonality? From my under…
Subscribe to:
Post Comments (Atom)
0 Response to subtracting year from a non-numeric variable
Post a Comment