Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scan_permutation and scan_eb_poisson #4

Open
lhdatalab opened this issue Nov 6, 2018 · 3 comments
Open

scan_permutation and scan_eb_poisson #4

lhdatalab opened this issue Nov 6, 2018 · 3 comments

Comments

@lhdatalab
Copy link

Hi Benjamin,

I was trying to us both of these functions in the scanstatistics package in a jupyter R notebook. It crashed the kernel for scan_eb_poisson (small sample based on simulated data and NMgeo), and was a long running operation for scan_permutations. Any ideas. 16GB RAM, 4core CPU, Windows 10.
``
Warning message in seq_len(nrow(x)):
"first element used of 'length.out' argument"

Error in seq_len(nrow(x)): argument must be coercible to non-negative integer
Traceback:

  1. scan_permutation(counts = counts2, zones = zones, population = NULL,
    . n_mcsim = 1, max_only = TRUE)
  2. flipud(population)
  3. rev(seq_len(nrow(x)))
    #' @Keywords internal
    flipud <- function(x) {
    x[rev(seq_len(nrow(x))), , drop = FALSE]

counts2.zip

@ghost
Copy link

ghost commented Nov 7, 2018

Would you mind sharing the full code; particularly how you define the variable zones?

@lhdatalab
Copy link
Author

lhdatalab commented Nov 8, 2018 via email

@lhdatalab
Copy link
Author

lhdatalab commented Nov 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant