请问,我有如下数据,我想根据不同的ID和date来求此日期及其之前日期的中位数,怎么用STATA实现呢?多谢了!
    ID               value          date
14428510        2.49        27apr2012
14428510        2.85        30apr2012
14428510        2.77        30apr2012
14428510        2.79        18may2012
14428510        2.58        22may2012
14428510        2.83        31may2012
14428510        3.44        31jul2012
14428510        3.75        31jul2012
14428510        3.4        31jul2012
14428510        3.51        31jul2012
14428510        3.2        01aug2012
14428510        3.25        06aug2012
14428510        3.48        10sep2012
14428510        3.45        26sep2012
14428510        3.42        28sep2012
14428510        3.75        03oct2012