Hi everyone,
I would like to display the marginal means of many variables in one figure, but I don't know how best to do this. Does it make sense to simply display all variables and their values next to each other on the x-axis and if so, what would the corresponding code be?
This is the random intercept regression model I'm running:
This is the data I'm using:
I would like to display the marginal means of many variables in one figure, but I don't know how best to do this. Does it make sense to simply display all variables and their values next to each other on the x-axis and if so, what would the corresponding code be?
This is the random intercept regression model I'm running:
Code:
xtreg fs_wage b0.p_sex13 b0.p_att b0.p_ethname13 b0.p_occstat34 b0.p_earnlevels34 b0.p_workperf34 if int_flag_wage2==0 & int_flag_survey_dur1_34==0, re vce(cluster respid) margins
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte fs_wage long(p_sex13 p_att p_ethname13) byte p_occstat34 double p_earnlevels34 byte p_workperf34 float(int_flag_wage2 int_flag_survey_dur1_34) -5 1 2 1 1 0 0 0 0 -5 0 2 1 0 0 2 0 0 -5 0 2 0 2 0 0 0 0 -5 0 1 1 0 0 0 0 0 -5 0 1 0 2 0 0 0 0 -5 0 2 1 0 0 0 0 0 -5 1 2 0 0 0 0 0 0 -5 0 2 0 0 0 0 0 0 -5 0 2 0 0 0 0 0 0 -5 1 1 1 0 0 0 0 0 -5 1 2 0 1 0 3 0 0 -5 1 2 2 2 0 1 0 0 -5 1 0 2 0 0 0 0 0 -5 1 0 2 0 0 0 0 0 -5 0 0 2 1 0 3 0 0 -5 1 2 2 0 0 2 0 0 -5 0 0 1 0 0 0 0 0 -5 0 2 1 0 0 2 0 0 -5 1 0 0 1 0 3 0 0 -5 1 0 0 0 0 3 0 0 -5 . 1 . 0 0 0 0 0 -5 1 1 0 0 0 2 0 0 -5 0 1 2 0 0 0 0 0 -5 1 2 2 0 0 0 0 0 -5 0 2 2 0 0 2 0 0 -5 0 2 2 0 0 2 0 0 -5 1 0 1 0 0 3 0 0 -5 1 2 1 2 0 1 0 0 -5 0 0 0 1 0 3 0 0 -5 0 0 2 0 0 3 0 0 -5 0 0 1 0 0 3 0 0 -5 0 1 2 0 0 0 0 0 -5 1 2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 2 0 1 0 1 0 0 -5 1 1 0 0 0 0 0 0 -5 0 2 0 0 0 0 0 0 -5 0 1 0 0 0 0 0 0 -5 . 2 . 2 0 0 0 0 -5 0 2 0 0 0 0 0 0 -5 0 0 2 2 0 3 0 0 -5 0 2 0 0 0 0 0 0 -5 1 1 2 0 0 3 0 0 -5 1 1 1 2 0 1 0 0 -5 1 0 2 2 0 0 0 0 -5 1 2 0 0 0 2 0 0 -5 1 0 1 0 0 2 0 0 -5 0 0 0 0 0 0 0 0 end label values fs_wage labels125 label values p_sex13 p_sex13 label def p_sex13 0 "0. female", modify label def p_sex13 1 "1. male", modify label values p_att p_att label def p_att 0 "0. low", modify label def p_att 1 "1. average", modify label def p_att 2 "2. high", modify label values p_ethname13 a_name label def a_name 0 "0. German Name", modify label def a_name 1 "1. Greek Name", modify label def a_name 2 "2. Turkish Name", modify label values p_occstat34 a_occstat2 label def a_occstat2 0 "0. Low status", modify label def a_occstat2 1 "1. Medium status", modify label def a_occstat2 2 "2. High status", modify label values p_earnlevels34 p_earnlevels34 label def p_earnlevels34 0 "0. low", modify label values p_workperf34 p_workperf34 label def p_workperf34 0 "0. No information provided", modify label def p_workperf34 1 "1. Low performance", modify label def p_workperf34 2 "2. Medium performance", modify label def p_workperf34 3 "3. High performance", modify

Comment