r - R:减少分位数回归结果中的图数
问题描述
通过使用以下代码,我可以绘制分位数回归模型的结果:
quant_reg_all <- rq(y_quant ~ X_quant, tau = seq(0.05, 0.95, by = 0.05), data=df_lasso)
quant_plot <- summary(quant_reg_all, se = "boot")
plot(quant_plot)
包括标签,我有 18 个变量。
我怎么能在当时绘制其中一些图像以便它们可读?
解决方案
根据您无法使用的图表数量,您可以执行以下操作:
quant_reg_all <- rq(y_quant ~ X_quant, tau = seq(0.05, 0.95, by = 0.05), data=df_lasso)
quant_plot <- summary(quant_reg_all, se = "boot")
plot(quant_plot, 1:3)# plot the first 3
plot(quant_plot, c(3, 6, 9, 10))# plot the 3rd, 6th, 9th and 10th plots
推荐阅读
- excel - 文件无法使用 Office365 打开的问题
- django - django url 给出页面未找到(404)错误
- constructor - 如何检查是否使用构造函数构造了变量?
- python - 极坐标直方图 - 没有错误但没有意义
- python - 如何修复:linkOutToCells[] 不允许用于 update_rows() 操作
- php - 将数组连接成一个关联数组
- python - 如何在 Flask API 中返回 JSON 对象(字典列表)
- reactjs - Formik & React Native:更新父值
- regex - 正则表达式:括号之间的匹配,但结果不能超过 25 个字符
- java - 我们在春季使用 Prototype 范围的实际业务场景?