我编写了这段代码来查找带有 X 轴标签和 Y 轴标签的分位数回归图。但它只给出没有轴标签的情节。如何找到每个变量的轴标签图。
library(quantreg)
quantile <- c(0.10, 0.20, 0.45, 0.70, 0.90)
fitqr <- rq(logbmi ~ age + total_children_born + education +
wealth + Residence + Region + Husband_educ + cur_work,
data=dat, tau=quantile , method="fn")
plot(summary(fitqr), lwd=1, pch=20 , cex=1.5, xlab="quantile",
ylab="coefficient")