Hello All,
I have a difficulty formating my year variable in my data set.
The data set is a huge table composed of different excel files the data of which was collected from different students. The problem is that the year-variable contains different formats of the date e.g. in the first 690 rows the year is listed as 1/1/2007 from the 691st row it is only 2007. I need to show only the year and ignore the day and month.
The solution should be a simply while loop but I couldn't figure it out.
Thank you in Advance
Dimitar
Related Posts with Format
IV: creating an interaction termHi all, I'm using an IV and I need to include an interaction term using the instrumented endogenous…
tvdiff vs. eventddDear forum members I have a question about staggered diff-in-diff and event studies. I managed to f…
General stata resources for analyzing J or U curve shaped dataI am analyzing data from a longitudinal data on hypertension. The outcome is all-cause mortality (ye…
Linking to specific posts in a Statalist threadI'm embarrassed to post this since I'm sure the answer is simple but I couldn't find it in the Stata…
LATE and ATE with continuous treatment and instrumentHi, I am looking for a Stata command which allows me to estimate ATE (Average Treatment Effect), in…
Subscribe to:
Post Comments (Atom)
0 Response to Format
Post a Comment