0

次のコードを使用すると、分位点回帰モデルの結果をプロットできます。

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 個の変数があります。

これらの画像のいくつかを一度にプロットして読みやすくするにはどうすればよいでしょうか?

4

1 に答える 1

1

できないグラフの数に応じて、次のことができます。

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
于 2021-04-16T21:20:48.117 に答える