* Data
use C:\...
* Install qregpd
ssc install qregpd
help qregpd
* Set data as panel data
sort $id $year
xtset $id $year
xtdescribe
* Run regressions
qregpd y x1 x2, id( id) fix(year) quantile(.1)
qregpd y x1 x2, id( id) fix(year) quantile(.25)
qregpd y x1 x2, id( id) fix(year) quantile(.5)
qregpd y x1 x2, id( id) fix(year) quantile(.75)
qregpd y x1 x2, id( id) fix(year) quantile(.90)
* Save as .docx
** Install asdoc
ssc install asdoc
help asdoc
** Run regressions (again)
asdoc qregpd y x1 x2, id( id) fix(year) quantile(.1) replace nest
qregpd y x1 x2, id( id) fix(year) quantile(.25) nest
qregpd y x1 x2, id( id) fix(year) quantile(.5) nest
qregpd y x1 x2, id( id) fix(year) quantile(.75) nest
qregpd y x1 x2, id( id) fix(year) quantile(.90) nest