Dear Statalisters,
Can anyone suggest code how to use the collapse command on a data set over a category for the confidence interval of the median of a variable?
I suspect this has to be done twice, i.e. seperately for the lower bound and the upper bound.
That would suit my purpose as I could merge the resulting data sets with the collapsed median values for further processing.
Any suggestion is much appreciated.
Can anyone suggest code how to use the collapse command on a data set over a category for the confidence interval of the median of a variable?
I suspect this has to be done twice, i.e. seperately for the lower bound and the upper bound.
That would suit my purpose as I could merge the resulting data sets with the collapsed median values for further processing.
Code:
* help file example modified for the median webuse college collapse (p50) gpa [fw=number], by(year)
Comment