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
Including an extra independent variable in a panel regression reports missing t-statistics/std. errorsHello everyone, I have a panel dataset, where the panel variable is industry code (I am doing an in…
Variable __000000 already definedHi, I do have a puzzling problem. I am computing gini coefficients using the bootstrap command to g…
bar chart width of barsHi i created this bar chart using the bar chart option within the data tab in stata and i produced t…
Comparing two interaction terms using "test"Hello, I have two interaction terms, which I would like to compare statistically. Say, some variabl…
Help with code for confidence bonds for QQplot of residualsHi guys, I am running a multiple linear regression model and to check the assumption of normality o…
Subscribe to:
Post Comments (Atom)
0 Response to subtracting year from a non-numeric variable
Post a Comment