id   age76   Wage76   Grade76   Black   immigrt. ...
1      25          102456      12              1             0
2      27          15432         15              0             1
3      30          12340          16             1             1

Then I have lots of data variables 100 for 5000 individuals nearly. What I
wanted is to discriminated by age and education level (age is years only and
grade is years in educational system and wage is salary only no rational
numbers here)
I want to have for people of education level 10 12 16, the average wage for
age 15, and then the same for age 16, and the same for age 17 and so on...
Once i have these average I plot (age vs average salary) to see the
"distribution in average"

--
View this message in context: 
http://r.789695.n4.nabble.com/Conditional-average-tp4585313p4586691.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to