Hello all, I am new to Stata, and have a midterm exam. I am hoping someone can help with a newbie quesiton.
I am using ESS data where the subjects are interviewed between Jan 11 and May 2nd There are two variables I am interested in combining. The day and the month. I need to make a histogram of the dates from January 11th up to Feb 18th, and then again from Feb 20th to May second. Leaving out Feb 19th.
Since the day of the interview and the month of the interview are two different values, coded quite differently, how can I make a histogram that has the spread of interviews from january to may by day on the x axis and number of interviews on those days on the y axis?
Is there a way to recode the data in order to show this information? I hope I have included the information necessary, happy to elaborate!
Related Posts with merging two variables with different values into one
Collapse by a variable, while preserving others and creating new variablesHi, I have a dataset on property transactions (a sample below, for those of you from the UK, this i…
PSID - Generating a household IDI am using 10 waves of the PSID data with the aim of analysing trends in household charitable giving…
How to make it as a program?Hi All, I am trying to make this as a program. Any help? Below is my code. Thanks clear set seed 12…
Creating an indicator variable from multiple, non-mutually exclusive, dummy variablesHi! I'm trying to create an indicator variable from several dummy variables (which are not mutually …
Help with Stata Coding (Urgent!)Nothing …
Subscribe to:
Post Comments (Atom)
0 Response to merging two variables with different values into one
Post a Comment