Displaying 1 result from an estimated 1 matches for "week_year".
2012 Jan 24
1
Splitting up large set of survey data into categories
...a.frame by Region, Industry,
Date (I would like to collapse the whole think to weekly data) and by the
three different answering options {1,2,3} in V1...VN. In stata which I used
before i did this step by step with a loop over all questions (V1...VN):
egen pos_`X'=total(`X'==1), by(industry week_year); egen
pos_`X'=total(`X'==2, by(industry week_year). This step-by-step procedure
works because stata, even if the dates are displayed as weeks, doesn't
aggregate the values immediately. Unfortunately there seems to be no command
which works exactly in the same manner as by() (from stata...