0

我正在尝试将幂律分布拟合到一些样本数据。我正在尝试使用该estimate_xmin()函数查找 xmin 。有谁知道为什么我在尝试应用非功能时会出错?

abs.logreturns <- as.data.frame(t(abs.logreturns))
x <- abs.logreturns
estimate_xmin(x, xmins = NULL, pars = NULL, xmax = 1e+05, distance = "ks") 

错误信息:

Error in m$getDat() : attempt to apply non-function
4

1 回答 1

0

您不能将向量传递给estimate_xmin()- 它必须是幂律对象。请参阅 powRlaw 包中的入门和/或工作示例小插曲 - https://github.com/csgillespie/poweRlaw

于 2019-07-27T10:40:48.247 回答