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]: Error in `[.data.frame`(dataset, , c(tempRe$value, me)): undefined columns selected #2077

Closed YingerPanda closed 1 year ago

YingerPanda commented 1 year ago

JASP Version

0.17.1

Commit ID

No response

JASP Module

Mixed Models

What analysis are you seeing the problem on?

Linear Mixed Models & Generalised linear mixed models

What OS are you seeing the problem on?

Windows 10

Bug Description

any dtat is wrong,even the data in JASP for Generalised linear mixed models image

Expected Behaviour

It can run, but It can not now.

Steps to Reproduce

1.input the data 2.choose Linear Mixed Models or Generalised linear mixed models 3.Wrong ...

Log (if any)

No response

Final Checklist

boutinb commented 1 year ago

@FBartos Can you have a look at this issue?

boutinb commented 1 year ago

Hi @YingerPanda we cannot reproduce this problem. What could help is that you send a data file, and the exact steps you do to reproduce this problem.

danielschad commented 1 year ago

I get the same error as described above (with JASP 0.18.0.0, macOS) when I set the language to German. When I set the language to English, I don't get the error message, and the analysis runs smoothly.

shun2wang commented 1 year ago

Well, I can reproduce it, this is step:

  1. Load Larks and Owls dataset .jasp
  2. Change GUI to Chinese/German language;
  3. Refresh analysis

seems all Linear Mixed Models & Generalised linear mixed models will have this issue with language change.

from logs we can see:

QWebEngineFileSystemAccessRequest is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
QWebEngineCertificateError is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
QWebEngineFullScreenRequest is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
QWebEngineLoadingInfo is neither a QObject, nor default- and copy-constructible. You should not use it as a QML type.
Remote debugging server started successfully. Try pointing a Chromium-based browser to http://127.0.0.1:12138
Loading required namespace: ragg
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:144: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:152: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:160: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:168: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:176: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:184: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:192: TypeError: Cannot call method 'includes' of undefined
file:///home/user/build-jasp-desktop-Desktop_Qt_6_4_3_GCC_64bit-Release/Modules/jaspMixedModels/jaspMixedModels//qml/MixedModelsGLMM.qml:200: TypeError: Cannot call method 'includes' of undefined
qrc:/components/JASP/Controls/GroupBox.qml:65:2: QML GridLayout: Qt Quick Layouts: Polish loop detected. Aborting after two iterations.
Error in stats::var(validValues) : 
  Calling var(x) on a factor x is defunct.
  Use something like 'all(duplicated(x)[-1L])' to test for a constant vector.
In addition: Warning messages:
1: ! Legacy `RNGkind(sample.kind = 'Rounding')` is used by default.
ℹ To use the current `RNGkind()` setting instead, use
  `options(jaspLegacyRngKind = FALSE)`.
This warning is displayed once every 8 hours. 
2: In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'resources/1/state', probable reason 'No such file or directory'
3: In (function (dataset, target, grouping = NULL, groupingLevel = NULL)  :
  NAs introduced by coercion
4: In (function (dataset, target, grouping = NULL, groupingLevel = NULL)  :
  NAs introduced by coercion
Error in if (any(nearOne)) { : missing value where TRUE/FALSE needed
In addition: Warning messages:
1: In apply(dataset, 2, as.numeric) : NAs introduced by coercion
2: In apply(dataset, 2, as.numeric) : NAs introduced by coercion
boutinb commented 1 year ago

This is due to the 'Intercept' value in the Random Effects. As it is translated in German & Chinese, this is not understaad by the R package.... I have a look if I can fix this...

shun2wang commented 1 year ago

ah, if so, it's possible that this is not an isolated case? which is why I tried to reproduce it by setting the locale in jasptools that day.