2017-10-22 4 views
2

Ich habe ein Quantil-Regressionsmodell in den folgenden Code eingebaut. Jetzt versuche ich dies als mehrere Quantil Regression Plots, eine für jede Variable zu plotten. Kann mir bitte jemand helfen?Zeichnen eines Quantil-Plots

Quantilsregression

Clouds.Formula <- rainfall ~ seeding + 
    seeding: (sne + cloudcover + prewetness + echomotion) + time 

Clouds.Quantile <- rq(Clouds.Formula, data = clouds, tau = 0.5) 
summary(Clouds.Quantile) 
Clouds.Quant.Coeff <- coef(Clouds.Quantile) 
residuals(Clouds.Quantile) 
fitted(Clouds.Quantile) 

Hier ist mein Code für die Handlung, die nur Arbeit gewohnt.

QR <- rq(Clouds.Quantile, tau = seq(0.2, 0.8, by = 0.1)) 
QR.Plot <- summary(QR) 

Hier ist die Art von Handlung I

enter image description here

+0

'Grundstück (QR.Plot)' nicht funktioniert? – Robert

Antwort

0

grafisch darzustellen versuche ich glaube, Sie so etwas tun sollte:

QR <- rq(Clouds.Formula, data = clouds, tau = seq(0.2, 0.8, by = 0.2)) 

QR.Plot <- summary(QR) 

plot(QR.Plot, xlim=c(0.001,10), ylim=c(0.001,10), log="xy") 

Ich habe und es funktionierte für mich.

enter image description here

+0

Vielen Dank !! Es funktionierte. Jetzt macht der Fehler, den ich bekommen habe, auch Sinn. – Soly

+0

sind Sie herzlich willkommen. Ich werde dir allerdings die Stimme geben, wenn das für dich funktioniert :) hahaha. Sowieso. Viel Glück. –