A few months ago, an officemate ran the following regressions:
Y1 = a + bx1 + cx2 + dx3 + …….. + nxn
Y2 = a + bx1 + cx2 + dx3 + …….. + nxn
.....
Y5 = a + bx1 + cx2 + dx3 + …….. + nxn
There were around 5 dependent variables and 7 explanatory variables (which include age and income). The data set also covered observations coming from more than 10 cities. Within a city, there are two types of observation, say registered and free-lance (o dead give away na kung ano ang topic J ).
Then I was asked to do the following (and to be submitted within 15 hours!)
1. Mean values of Y1, Y2, and Y3 by explanatory variables, meaning…..
-Say one of the explanatory variables is sex. Means of Y1, Y2, Y3 for male and for female. I remember the regression models had categorical variables as well, so Means of Y1, Y2, Y3 for ALL the categories!
2. Oh, and note that since there are continuous explanatory variables, age and income….
The means has to be done for each age and income quintile groups, meaning…..
Means of Y1, Y2,Y3 for quintile1 of age, quintile2, quintile3….and the same style for income and ALL THE OTHER EXPLANATORY VARIABLES
3. Oh, and the quintiles of the continous explanatory variables SHOULD BE REFLECTIVE of location distributions and not the entire data set. Meaning, the quintiles should be generated PER location.
4. And one last note, the table should be PER LOCATION and PER TYPE OF OBSERVATION (registered versus free lance).
Ang DAMING gusto! Inday, tapos na ang trilogy ng Lord of the Rings, and isama mo pa ang special features,malamang hindi pa ako tapos. And kinabukasan siya kailangan!
I can do the basic table commands, tabstatat, tab, sum. Pero naman, sa conditionalities pa lang (setting the “if”), prone na to mistakes……So...
I performed a COLLAPSE command!
Click here for a sample. Enjoy.
No comments:
Post a Comment