csgillespie / poweRlaw

This package implements both the discrete and continuous maximum likelihood estimators for fitting the power-law distribution to data. Additionally, a goodness-of-fit based approach is used to estimate the lower cutoff for the scaling region.
109 stars 24 forks source link

bootstrap_p issue, could not find function "get_n" #53

Closed AnaCG closed 9 years ago

AnaCG commented 9 years ago

Greetings. I am working with a very large dataset, in the form of dataframe (4635810 elements). The error is at the end of the message, I hope you have had this issue before and can tell me what I am doing wrong. It is really complicated to provide the dataset, never the less these are the commands I am applying: alldeg<-the 4635810 elements deg_pl<-displ$new(alldeg) est<-estimate_xmin(deg_pl) deg_pl$xmin<-est

print("KS statistic for power law distribution") print(est$KS)

bs<-bootstrap_p(deg_pl)

At this point, I get the following error: Error in checkForRemoteErrors(val) : one node produced an error: could not find function "get_n" Calls: bootstrap_p ... clusterApply -> staticClusterApply -> checkForRemoteErrors

csgillespie commented 9 years ago

Ok. I think I know what's wrong. I'll fix on Monday.

csgillespie commented 9 years ago

I couldn't reproduce your error, but I think I may still be able to fix it. Would you try out the fix and let me know. Thanks

AnaCG commented 9 years ago

Ok thank you, I'll let you know if this helped!

AnaCG commented 9 years ago

Hey! so I am still getting the error, do I need any sort of special permissions for this? Because I am trying to run this code on a cluster, and when trying to do so on my own computer it required administrative permissions.

csgillespie commented 9 years ago

To double check I presume you used the github version

On 17:38, Tue, 18 Aug 2015 Ana Costilla notifications@github.com wrote:

Hey! sorry but I could not solve the error, I have a smaller 685KB dataset that I can email to you for you to replicate the error.

— Reply to this email directly or view it on GitHub https://github.com/csgillespie/poweRlaw/issues/53#issuecomment-132270086 .

csgillespie commented 9 years ago

@AnaCG Did you use the github version?