2017-02-08 6 views
0

私は、RでFrechet Quantile(Q-Q)プロットを作成する必要がある単一のデータ列(車軸重さ)を持つベクトルを持っています。 RのFrechet分布に対するQ-Qプロットを作成するにはどうすればよいですか?私は成功せず、以下を試してみました:R Frechet Quantileプロット

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")