I'm trying to fit a power law distribution to some sample data. I am trying to find xmin using the estimate_xmin()
function. Does anyone know why I get an error about attempting to apply a non-function?
abs.logreturns <- as.data.frame(t(abs.logreturns))
x <- abs.logreturns
estimate_xmin(x, xmins = NULL, pars = NULL, xmax = 1e+05, distance = "ks")
Error message:
Error in m$getDat() : attempt to apply non-function