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

Binomial test analysis terminated unexpectedly #287

Closed
qyugit opened this issue Jan 8, 2019 · 2 comments
Closed

Binomial test analysis terminated unexpectedly #287

qyugit opened this issue Jan 8, 2019 · 2 comments
Assignees

Comments

@qyugit
Copy link

qyugit commented Jan 8, 2019

  • JASP version: Version 0.9.2
  • OS name and version: macOS Mojave 10.14.3
  • Analysis: Binomial test
  • Bug description:

This analysis terminated unexpectedly.

Error in stats::binom.test(counts, n, p = options$testValue, alternative = hyp, : 'n' must be a positive integer >= 'x'

Stack trace
analysis(dataset = dataset, options = options, perform = perform, callback = the.callback, state = oldState)

.binomialTest(dataset, options, perform, variables)

stats::binom.test(counts, n, p = options$testValue, alternative = hyp, conf.level = options$confidenceIntervalInterval)

stop(''n' must be a positive integer >= 'x'')

binomial_catch.jasp.zip

  1. Go to 'Frequencies'
  2. Click on 'Binomial Test'
  3. Select variables (all the variables not including V1) into the testing window
  4. See error
@TimKDJ
Copy link

TimKDJ commented Jan 24, 2019

Thanks for the report @qyugit.

Strange indeed. It seems to have something to do with the fact that all your variable names are numbers.
We'll fix this, but in the mean time (if you would still like to analyse this data) you can use the .csv attachment.

binomial_catch.csv.zip

@boutinb boutinb self-assigned this Feb 8, 2019
@boutinb
Copy link
Contributor

boutinb commented Mar 20, 2019

The error is in fact quite tricky: a column name has the same name as the number of columns.
In the next release, I will add a 'V' to column whose name is an integer: that will solve automatically this problem, and also solve any problem with filtering where name of column can be directly used in R script.

@boutinb boutinb closed this as completed Mar 20, 2019
boutinb added a commit to boutinb/jasp-desktop that referenced this issue Mar 20, 2019
boutinb added a commit to jasp-stats/jasp-desktop that referenced this issue Mar 20, 2019
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

3 participants