Hi,

I would like to create a plot that shows the median of a variable within two different groups with the median confidence intervals.

Specifically, with the data below, I would like create a plot that shows the median of sppbscore0 within the two age groups (age < 70.77 & age >=70.77) with the confidence intervals included, all on the same plot.

This plot would be similar to the plots produced by the
Code:
ciplot
command from SSC for the mean of a variable.

I am using Stata 16.1 for Mac.

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input byte sppbscore0 float age_hl
 8 0
10 1
 6 1
12 1
 9 0
 7 1
 7 1
10 0
10 0
 8 1
 5 0
 8 1
 7 1
 8 0
 8 0
 6 1
 9 1
 5 1
 9 0
 9 0
end
label values age_hl Age
label def Age 0 "Age <70.77", modify
label def Age 1 "Age >70.77", modify
Any help would be appreciated.

Thank you.