jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
58 stars 29 forks source link

[Bug]: Multinomial Analisys #2844

Closed casanovacruz closed 1 day ago

casanovacruz commented 1 month ago

JASP Version

0.18.3

Commit ID

No response

JASP Module

Frequencies

What analysis are you seeing the problem on?

Multinomial

What OS are you seeing the problem on?

macOS Intel

Bug Description

Se adjunta bug

Expected Behaviour

Error in [<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = structure(list(: replacement element 1 has 5 rows, need 6

Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])

doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.multinomReadData(dataset, options)

[<-(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

[<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

stop(sprintf(ngettext(N, 'replacement element %d has %d row, need %d', 'replacement element %d has %d rows, need %d'), k, N, n), domain = NA)

Steps to Reproduce

  1. Análisis multinomial
  2. ...

Log (if any)

Error in [<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = structure(list(: replacement element 1 has 5 rows, need 6

Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])

doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.multinomReadData(dataset, options)

[<-(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

[<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

stop(sprintf(ngettext(N, 'replacement element %d has %d row, need %d', 'replacement element %d has %d rows, need %d'), k, N, n), domain = NA) Captura de pantalla 2024-07-24 a la(s) 22 22 34

More Debug Information

Error in [<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = structure(list(: replacement element 1 has 5 rows, need 6

Stack trace tryCatchOne(expr, names, parentenv, handlers[[1]])

doTryCatch(return(expr), name, parentenv, handler)

withCallingHandlers(expr = analysis(jaspResults = jaspResults, dataset = dataset, options = options), error = .addStackTrace)

analysis(jaspResults = jaspResults, dataset = dataset, options = options)

.multinomReadData(dataset, options)

[<-(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

[<-.data.frame(*tmp*, seq_along(factLevelOrder), , value = list(Recuento de mrun = c(815, 1706, 2124, 1224, 610), Grupo = 1:5))

stop(sprintf(ngettext(N, 'replacement element %d has %d row, need %d', 'replacement element %d has %d rows, need %d'), k, N, n), domain = NA)

Final Checklist

tomtomme commented 1 month ago

@casanovacruz thx for the report! Can you share the .jasp file by renaming to .zip and drag and dropping it here? I cannot reproduce the error with data from the data library. thx

github-actions[bot] commented 1 day ago

This issue will be automatically closed in 42 days due to inactivity. Feel free to leave a comment if you believe this is still relevant.

tomtomme commented 1 day ago

I checked with 0.19 and the data library file and your settings. I cannot reproduce the error with that data file. I will have to close this one for now. Feel free to reopen, if you see the error with jasp 0.19 still and if you can share your data as described above.