Dear Stata Community,


I have three variables: an event_ind (indicating event occurs) and an education indicator and marital indicator. I want to find the rates of the event indicator over different education and marital groups. Effectively there will be 8 groups (4 education and 2 marital) and I want to plot the rates where event_ind=1 across groups.

A sample chart would have eight bars corresponding to each of the groups showing the rates where event_ind=1.
i
Thanks in advance

Code:
input float(event_ind mother_edind marital_ind)
1 4 1
0 2 2
0 2 1
0 3 2
1 3 1
0 3 1
0 2 1
0 3 2
1 3 1
0 2 1
0 3 1
1 2 1
0 3 1
0 2 2
0 2 2
0 4 1
1 2 1
0 2 1
0 2 2
0 3 1
end
label values vlow_wt_ind lbw2
label def lbw2 0 "Event:0", modify
label def lbw2 1 "Event:1", modify
label values mother_edind edu
label def edu 1 "<High School", modify
label def edu 2 "High School/GED", modify
label def edu 3 "College", modify
label def edu 4 "College+", modify
label values marital_ind mar
label def mar 1 "Married", modify
label def mar 2 "Single", modify