2017-02-08 37 views
0

我有一列向量,需要在R中創建一個Frechet分位數(Q-Q)圖的單列數據(車輛軸重)。庫質量工具不處理這種分佈。我如何爲R中的Frechet分佈創建一個Q-Q圖?我試過以下沒有成功:R Frechet分位數圖

x<-T4A4$X79 
y<-sort(x,decreasing=FALSE) 
View(y) 
vectorlength=length(y) 
View(vectorlength) 

d=dfrechet(y,shape=1) 
p=pfrechet(y,shape=1) 
q=qfrechet(p,shape=1) 

View(d) 
View(p) 
View(q) 
plot(q,y,main="Frechet") 

回答

0

This web page顯示單程。這裏是:

your_data <- rnorm(30) 
qqplot(x = VGAM::qfrechet(ppoints(n = length(your_data)), 
          shape = 1), 
     y = your_data, 
     xlab = "Theoretical Quantiles", 
     ylab = "Sample Quantiles")