Rate of Graduation (%) | ||
Parent’s Years of Education | Tall | Short |
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
Etc until 20 | ||
All |
I made a binary variable that says child_degree, which equals 1 if the child received a college degree or higher, and equals zero otherwise like so: (I hope I did this right)
Now I want to create a table like the one above to show the fraction of college graduates by each year of parent's education, for tall and short children. I'm not sure how to do this.
My variable are
tall = 1 if the child is tall and = 0 if child is short
p_edu number of years of parent's education
how do i write the code for the table? (thank youuu)
0 Response to How to make a table with multiple variables?
Post a Comment