1
我有以下樣本數據集。第一列是序列號,第二列是數據。無法使用PoweRlaw來估計xmin,大數據集的alpha
使用R,我試圖找到xmin,alpha和pvalue。上述數據集是離散的,值很大,並將數據視爲連續的。出於某種原因,R無法爲est= estimate_xmin()
提供適當的輸出。這是相同的代碼。
> library('poweRlaw')
> m_bl = conpl$new(sample_data$V1)
> est = estimate_xmin(m_bl)
> m_bl$setXmin(est)
Warning message:
In min(which(internal[["dat"]] >= (x - .Machine$double.eps^0.5))) :
no non-missing arguments to min; returning Inf
>
> est
$KS
[1] Inf
$xmin
[1] NA
$pars
[1] NA
attr(,"class")
[1] "estimate_xmin"
>
請讓我知道如果我失去了一些東西。提前致謝。
感謝很多人。代碼工作正常。 – user128956
我在github網站上添加了一個註釋,我會嘗試修復下一個版本。謝謝 – csgillespie